谷歌地图网站和 API:不同的结果 [英] Google Maps Web site and API : different results
问题描述
为什么调用 Google Maps Geocoder API 返回的结果与我在浏览器中看到的结果不同?
Why do calls to the Google Maps Geocoder API return different results than what I see in my browser?
这个返回很多项目:
http://maps.google.fr/maps?q=McDonald,+paris
这个返回一个 ZERO_RESULT :
http://maps.googleapis.com/maps/api/geocode/xml?McDonald,+paris&sensor=false
This one returns a ZERO_RESULT :
http://maps.googleapis.com/maps/api/geocode/xml?McDonald,+paris&sensor=false
推荐答案
常见问题:https://developer.google.com/maps/faq#geocoder_differences
API 地理编码器会找到邮政地址.地图地理编码器使用大量数据(包括业务数据)来查找结果.
The API geocoder finds postal addresses. The Maps geocoder uses lots of data, including business data, to find results.
Places API 可以根据type/class 查找位置,但它可能不适用于企业names.文档
There is the Places API which can find locations based on type/class, but it may not work for business names. Documentation
这篇关于谷歌地图网站和 API:不同的结果的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!