使用 Wikimapia.org Api
我正在尝试使用 wikimapia api 来查找特定城市或地点的经度和纬度的场所。 没有太多的文档,但我想这只是一个 http 请求。 现在,我遇到的问题是关于特定的 ulr。我尝试了这个:
http://api.wikimapia.org/?function=search
&key= myKey
&q=lat= theLatidute
&lon= theLongitude
&format=json
但似乎不起作用。任何帮助将不胜感激..
I am trying to use the wikimapia api for finding venues of specific cities or places given their longitude and latidute.
There isn't much of some documentation, but I suppose that it would just be an http request.
Now, the problem I have is about the specific ulr. I tried this one:
http://api.wikimapia.org/?function=search
&key= myKey
&q=lat= theLatidute
&lon= theLongitude
&format=json
but it doesn't seem to work. Any help will be appreciated..
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
![扫码二维码加入Web技术交流群](/public/img/jiaqun_03.jpg)
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
搜索 API 要求您设置搜索位置(经度和纬度)以及用于搜索该位置的内容的名称。
例如,要查找特定坐标附近的火车站:
如果您只是想查找靠近某个坐标的对象列表,没有搜索词,则需要使用具有小偏移量的 box API:
如果您只需输入一组坐标,您可以像这样计算
lon_min
、lon_max
、lat_min
和lat_max
:The search API requires that you set a search location (long and lat) as well as the name of something to search for that location.
For example, to find a train station near a particular coordinate:
If you're just trying to find a list of objects that are close to a coordinate, without a search term, you need to use the box API with small offsets:
If you only want to input one set of coordinates, you can compute
lon_min
,lon_max
,lat_min
andlat_max
like this: