什么算作地理编码?

发布于 2024-11-27 04:35:15 字数 492 浏览 5 评论 0原文

我正在开发一个涉及 Google 地图 API 的应用程序,我担心每日 2500 个地理编码的限制。不过,我并没有明确定义什么算作地理编码。例如:

  • 我可以从 GPS 获取当前位置,但是当我在 MapView 上显示这些纬度和经度坐标时,这算作 1 吗?
  • 获取坐标外的地址肯定算作
  • 我假设获取从 A 点到 B 点的方向也算作地理编码吗?

我想在 MapView 上显示一堆硬编码坐标,但如果有 30 个,那么这是否算作 30 个地理编码?另外,如果我每 5 秒更新一次 MapView 上的用户 GPS 位置,每次更新是否也算作地理编码?我想让用户能够获得从当前 GPS 位置到其中一个点的方向,我假设这也会占用地理编码。如果我对点进行硬编码,从一组坐标到另一组坐标的方向是否会使用地理编码?

我可以看到我的应用程序达到了 10 个用户的地理编码限制...这似乎不对。有人能给我一个明确的解释什么重要/不重要吗?任何减少我制作的地理编码数量的技巧也很有用,谢谢。

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.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

风吹短裙飘 2024-12-04 04:35:15

根据此: http://googlegeodevelopers.blogspot.com /2010/03/introducing-new-google-geocoding-web.html 每个 IP 地址每天可以发出 2500 个请求,因此如果请求来自不同的用户如果它们每天不发出 2500 个请求,那么您应该没问题。

According to this: http://googlegeodevelopers.blogspot.com/2010/03/introducing-new-google-geocoding-web.html you are allowed 2500 requests per day per IP address, so if the requests are from different users on different devices, then you should be OK if they don't all make 2500 requests a day.

我很OK 2024-12-04 04:35:15

如果你的 30 点没有移动,那么你只需获取一次并保存它们。

如果您从 GPS 获取经度和纬度,并且不将其转换为地址,只是将其用作地图视图上的位置,则它根本不使用地理编码。

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.

无人问我粥可暖 2024-12-04 04:35:15

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

使用上面链接中定义的 google API 的任何 http 请求

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

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文