在Google地图(Places API?)中使用纬度和经度获取地点详情或建筑物名称 [英] Get Place details or building names using latitude and longitude in Google Maps(Places API ?)

查看:103
本文介绍了在Google地图(Places API?)中使用纬度和经度获取地点详情或建筑物名称的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有人有关于如何使用经度和纬度获取Google地图Places API下的地点详情?我试着用谷歌搜索解决方案,但只能找到它的相反。所以总之我需要获得纬度/经度的位置。



在别人说使用地理定位之前,我会说先证明一个,就像在黑暗的答案拍摄。



我已经在这方面寻找了几个小时,我不确定如何实现这一点。

我已阅读过诸如这个没有任何意义。



就这样很明显,我有 46.73069,-117.16345999999999 这将成为WSU的Bookie的地方,其中

 参考 : CmRUAAAAlgRCcYLe_HkYEFeUg9snExIKbgBTFVHTbyFkON1CTd58dH7iuJoyrPjXxWyEcoToa-Lrd7i__dpa83uGRBbrLeefEzz2hAL8pQPzx0YxHQPP4JNbrdKHW7LVUPJKwnHPEhA8PDSefSATZ6qWfT0eujRXGhRyBRL5P_vqpr7Tv7KigjgXmPJp6w 

如果您通过参考查找的地方,你找哪家的点,但我需要通过经纬度和长期找到它匹配的地方。

解决方案

好的抱歉,我有更多的评论在这里值得..



所以,交易是你只是geting地址..这不是一个地方条目。看到这里是一个问题的例子。如果您在此处使用本地搜索,请 http:// gmaps-samples-v3 .googlecode.com / svn / trunk / localsearch / places.html ,然后输入pullman cue即可获得该位置,但如果您使用新位置 http://code.google.com/apis/maps/documentation/javascript/examples/places-autocomplete.html 你不能拉起同一个地方。更糟糕的是,您可以通过引用来呼叫您可以通过引用呼叫的地方,这个地方很奇怪,使其成为放置,但不能保证将同一标记返回给任何特定地点,并且可以通过您可以通过它可以用于合并有关此地点的数据并验证地点在不同搜索区域中的身份来调用您的ID,如 http://code.google.com/apis/maps/documentation/javascript/examples/place-search.html ..所以..交易是我需要的地方普尔曼线索,而不使用折旧的API。



我只是希望能够通过很容易做到的事情来获得地方。idk


Does anyone have any idea on how to get the place details under the Google Maps Places API using a latitude and longitude? I have tried Googling the solution, but can only find the reverse of it. So in short I need to get the place for a Latitude/Longitude.

Before someone says use geolocation, I'd say prove that one first as to me that would some like a shoot in the dark answer.

I have searched for hours on this and am unsure how to achieve this.

I have already read questions such as this that have gotten nowhere.

Just so it's clear, I have 46.73069,-117.16345999999999 which would be the place of "Bookie" at WSU with

"reference":"CmRUAAAAlgRCcYLe_HkYEFeUg9snExIKbgBTFVHTbyFkON1CTd58dH7iuJoyrPjXxWyEcoToa-Lrd7i__dpa83uGRBbrLeefEzz2hAL8pQPzx0YxHQPP4JNbrdKHW7LVUPJKwnHPEhA8PDSefSATZ6qWfT0eujRXGhRyBRL5P_vqpr7Tv7KigjgXmPJp6w"

Which if you look up the place via the reference you get the point but I need to pass the lat and long to find the places it matches.

解决方案

ok sorry i had more then a comments worth here..

So the deal is that you are just geting the address.. that is not a places entry. See here is an example of the issue. If you use local searches here http://gmaps-samples-v3.googlecode.com/svn/trunk/localsearch/places.html and now type in "pullman cue" you get the place, but if you use the new places http://code.google.com/apis/maps/documentation/javascript/examples/places-autocomplete.html you can't pull up the same place. Worse yet you can call the place you can call by reference which is weird to make it "Place, but the same token is not guaranteed to be returned for any given Place across different searches" and to be able to call by it but on the id which you can’t call by "It can be used to consolidate data about this Place, and to verify the identity of a Place across separate searches" as shown here http://code.google.com/apis/maps/documentation/javascript/examples/place-search.html .. so.. the deal is that i need the place "pullman cue" without using the depreciated api.

I just want to be able to get a place by something that is easy to do repeatedly.. idk

这篇关于在Google地图(Places API?)中使用纬度和经度获取地点详情或建筑物名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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