简体   繁体   中英

What counts as a Geocode?

I'm working on an app that involves the Google Maps API and I'm worrying about the 2500 daily geocode limit. It's not clearly defined to me on what counts as a geocode though. For example:

  • I can get my current location from my GPS, but when I display those latitude and longitude coordinates on a MapView does that count as one?
  • Getting an address out of coordinate counts for sure
  • I'm assuming getting directions from point A to B counts as a geocode?

I want to display a bunch of hardcoded coordinates on my MapView, but if there are 30 of them then would that count for 30 geocodes? Also, if I updated my users GPS location on a MapView every 5 seconds, would each update also count as a geocode? I want to make it so that users can get directions from their current GPS location to one of the points, which I'm assuming would take up a geocode as well. If I hardcode the point in, would getting directions from one set of coordinates to another set use a geocode?

I could see my app reaching the geocode limit with 10 users... which does not seem right. Can somebody give me a clear explanation on what does/doesn't count? And any tricks to reducing the number of geocodes I make would also be useful, thanks.

根据这个: http//googlegeodevelopers.blogspot.com/2010/03/introducing-new-google-geocoding-web.html每个IP地址每天允许2500个请求,因此如果请求来自不同的用户设备,如果他们不是每天都发出2500个请求,那么你应该没问题。

If your 30 points aren't moving, then you only have to get them once and save them.

If you get longitude and latitude from GPS and don't convert that to an address just use it as a psoition on the mapview, it isn't using a geocode at all.

http://code.google.com/apis/maps/documentation/geocoding/

Any http request using the google API as defined in the link above

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM