Geocoder仅针对一个地址返回空 [英] Geocoder returns empty for only one address

查看:61
本文介绍了Geocoder仅针对一个地址返回空的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Geocoder从地址列表中检索经纬度.它对所有其他对象都适用,除了其中一个返回空值.我已经在Google Maps上尝试过该地址(在设备应用程序和网络浏览器上),并且该地址是有效地址,显示了其确切位置.

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?

这是未处理的地址:"315 Iron Horse Way,地址101,普罗维登斯,RI 02908"

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

推荐答案

一种选择是直接调用地理编码Web服务. 它确实返回了该地址的有效响应,请检查您自己:

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

此处找到更多信息.

顺便检查一下使用限制:

每天使用Google Geocoding API的查询限制为2500个地理位置请求. (Google Maps API for Business用户每天最多可以执行100,000个请求.)

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.)

这篇关于Geocoder仅针对一个地址返回空的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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