谷歌附近的地方搜索

谷歌附近的地方搜索

本文介绍了谷歌附近的地方搜索的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道是否可以通过给定一个固定点的半径参数来获得附近的位置。假设我想要在特定位置的10公里直径附近才能找到附近的位置。



我可以使用google api来做到这一点吗?或



我必须为此使用其他一些内容? 解决方案

from:


$ b 需要某些参数才能启动地方搜索请求,这是URL中的标准,所有参数均使用&符号(&)字符分隔。

- location (必填) - 要检索的纬度/经度周围信息,必须以google.maps.LatLng对象的形式提供。


$ b - 半径(必填) - 距离(以米为单位)返回位置结果建议的最佳做法是根据位置传感器给出的位置信号的精度设置半径。请注意,设置半径会将结果偏向指定区域,但可能不会完全限制结果到指定区域。


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.

这篇关于谷歌附近的地方搜索的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-06 06:49