谷歌地图网站和API:不同的结果 [英] Google Maps Web site and API : different results

查看:240
本文介绍了谷歌地图网站和API:不同的结果的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

为什么到谷歌地图地理codeR API调用比我在浏览器中看到返回不同的结果?

Why do calls to the Google Maps Geocoder API return different results than what I see in my browser?

这其中一个返回很多项目:结果
<一href=\"http://maps.google.fr/maps?q=McDonald,+paris\">http://maps.google.fr/maps?q=McDonald,+paris

This one returns many items :
http://maps.google.fr/maps?q=McDonald,+paris

这其中一个返回一个ZERO_RESULT:结果
<一href=\"http://maps.googleapis.com/maps/api/geo$c$c/xml?McDonald,+paris&sensor=false\">http://maps.googleapis.com/maps/api/geo$c$c/xml?McDonald,+paris&sensor=false

This one returns a ZERO_RESULT :
http://maps.googleapis.com/maps/api/geocode/xml?McDonald,+paris&sensor=false

推荐答案

常见问题:<一href=\"https://developers.google.com/maps/faq#geo$c$cr_differences\">https://developers.google.com/maps/faq#geo$c$cr_differences

该API地理位置codeR发现的邮政地址即可。该地图地理codeR使用大量的数据,包括业务数据,发现结果。

The API geocoder finds postal addresses. The Maps geocoder uses lots of data, including business data, to find results.

还有就是地方的API,它可以找到根据的类型/类的,但它可能不适合业务工作的名称的位置。 文档

There is the Places API which can find locations based on type/class, but it may not work for business names. Documentation

这篇关于谷歌地图网站和API:不同的结果的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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