半径范围内得到附近的街道地址 [英] Get nearby street addresses within a radius

查看:219
本文介绍了半径范围内得到附近的街道地址的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想上的GeoPoint在小范围内检索所有街道地址的列表。

I would like to retrieve a list of all the street addresses within a small range on a geopoint.

一个使用情景是用户从地址列表(在说50米)的当前位置,因为位置检索不会是不够准确。

A scenario for use is for a user to select his/her current address from a list of addresses (within say 50 meters) of current location, since location retrieval is not going to be accurate enough.

我想知道如果是使用谷歌地图API是可能的吗?
否则,没有人知道一个替代的API,我可以用于此用途?

I am wondering if that is possible using Google maps API? Otherwise does anyone knows an alternative API that I can use for this purpose?

这是我所看到的,虽然谷歌地图反向地理编码服务返回一个数字地址的一个的GeoPoint他们通常是该地址只是不同的再presentations,而不是附近的位置的地址。

From what I've seen, although the Google maps reverse geocoding service returns a number of "addresses" for a geopoint they are usually just different representations of the address, rather than addresses near location.

我已经看到了等等一些类似的问题,但什么都没有我要找的答案。

I've seen some similar questions on SO but none had the answers I am looking for.

推荐答案

我能够得到样的结果我一直在寻找使用API​​的组合。

I was able to get the kind of results I was looking for using a combination of APIs.

首先,我得到使用附近的街道名称 GEONAMES'查找附近的街道

First I get the names of the nearby streets using Geonames' "Find nearby streets"

然后对于每个街道,我得到一个GeoPoint对象以及他们的地图API工具包的TomTom的反向地理编码方法,运行它,这给我的最大和最小的街道数值为每个街道。

Then for each street I get a geopoint and run it by TomTom's Reverse Geocoding method of their Map Toolkit API, that gives me the min and max street number values for each of the streets.

这篇关于半径范围内得到附近的街道地址的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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