Geocoder returns empty for only one address

末鹿安然 提交于 2019-12-11 07:36:10

问题


I'm using the Geocoder to retrieve lat and long coordinates from a list of addresses. It works perfect with all of them except for one, where it returns empty. I've tried the address on Google Maps (on device app as well as web browser) and it is a valid address, showing its exact location.

Any ideas of how to mitigate this?

This is the address that doesn't get processed: "315 Iron Horse Way, Ste. 101, Providence, RI 02908"


回答1:


One option is to call the Geocoding Web Service directly. It does return a valid response for that address, check for yourself:

http://maps.googleapis.com/maps/api/geocode/json?address=315%20Iron%20Horse%20Way,%20Ste.%20101,%20Providence,%20RI%2002908&sensor=false

Find more info here.

By the way, check also the usage limits:

Use of the Google Geocoding API is subject to a query limit of 2,500 geolocation requests per day. (User of Google Maps API for Business may perform up to 100,000 requests per day.)



来源:https://stackoverflow.com/questions/13052478/geocoder-returns-empty-for-only-one-address

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!