Issue in displaying static Google maps

2019-09-08 07:59发布

问题:

The src property for the img tag is

http://maps.google.com/maps/api/staticmap?center=1701 Fm Rd 1187, Mansfield, Tx &size=150x90&sensor=false&zoom=15&maptype=roadmap" + "&markers=size:tiny|color:blue|1701 Fm Rd 1187, Mansfield, Tx 

回答1:

It works fine from here. You have simply exceeded the usage limits from your IP address:

Use of the Google Static Maps API is subject to a query limit of 1000 unique (different) image requests per viewer per day.

Since this restriction is a quota per viewer, most developers should not need to worry about exceeding their quota. However, note that we enforce an additional request rate limit to prevent abuse of the service. Requests of identical images, in general, do not count towards this limit beyond the original request.

Further reading:

  • Static Maps API V2 Developer Guide - Usage Limits