问题描述
我想知道是否可以通过给定一个固定点的半径参数来获得附近的位置。假设我想要在特定位置的10公里直径附近才能找到附近的位置。
我可以使用google api来做到这一点吗?或
我必须为此使用其他一些内容? 解决方案
我想知道是否可以通过给定一个固定点的半径参数来获得附近的位置。假设我想要在特定位置的10公里直径附近才能找到附近的位置。
我可以使用google api来做到这一点吗?或
我必须为此使用其他一些内容? 解决方案
from:
- location (必填) - 要检索的纬度/经度周围信息,必须以google.maps.LatLng对象的形式提供。
I was wondering if we could get nearby location by giving the radius parameter around a fixed point. Say i want to get nearby locations only in 10km diameter of a particular location.
Can i do this using google api? or
i have to use some thing else for this?
from: http://code.google.com/apis/maps/documentation/places/
"Certain parameters are required to initiate a Place Search request. As is standard in URLs, all parameters are separated using the ampersand (&) character. The list of parameters and their possible values are enumerated below.
-location (required) — The latitude/longitude around which to retrieve Place information. This must be provided as a google.maps.LatLng object.
-radius (required) — The distance (in meters) within which to return Place results. The recommended best practice is to set radius based on the accuracy of the location signal as given by the location sensor. Note that setting a radius biases results to the indicated area, but may not fully restrict results to the specified area.
这篇关于谷歌附近的地方搜索的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!