使用地理位置和Google Maps API [HELP] [英] Working with Geolocation and Google Maps API [HELP]

查看:181
本文介绍了使用地理位置和Google Maps API [HELP]的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是新的移动开发世界,现在我正在建立一个使用jQuery mobile和PhoneGap的应用程序。这是我的逻辑:

I'm new to the mobile development world and right now I'm building an app that uses jQuery mobile and PhoneGap. Here's my logic:


  • 我有一个包含用户及其地址的表。我抓住用户地址,并通过地图API抓住位置。但是我为每个记录都这样做,有时API会中断,因为同时发出的请求数量。

用户最靠近我,而不是通过地图API运行它。

How can I know what users are closest to me without running it through the maps API?

非常感谢。

推荐答案

Rafael,Google限制了您可以执行的请求数量,因为它们违反其TOS进行批量地理编码,无需支付(相当昂贵的)营业执照。您需要找到一个允许您对地址进行地理编码的服务。

Rafael, Google limits the number of requests you can do because it's against their TOS to do batch geocoding without paying for a (rather pricey) business license. You'll need to find a service that allows you to geocode addresses en masse.

我会推荐一个像 LiveAddress API ,它不仅可以对地址进行地理编码,还可以确认有效性并填写缺失或不正确的信息。对API的每个请求可以包括多达100个地址。如果您只想验证电子表格或CSV文件中现有的地址列表,则有非API版本。

I would recommend one like LiveAddress API which will not only geocode the addresses but also confirm the validity and fill out missing or incorrect information. Each request to the API may include up to 100 addresses. There's a non-API version if you just want to verify an existing list of addresses in a spreadsheet or CSV file.

我可以在 SmartyStreets ,并乐于帮助您解决有关您的地址的任何其他问题。

I do work at SmartyStreets and would be happy to help you with any other questions about your addresses.

这篇关于使用地理位置和Google Maps API [HELP]的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆