Android地理编码获取最近的位置
我的应用程序中有地理编码器,我想通过街道名称获取位置。 但如果尝试获取某些街道的位置,我会得到其他城市该街道的位置。
有没有办法按距某个位置的距离来排列找到的位置?
I have Geocoder in my application and I want to get location by street name.
But if try to get location of some, I've get a location of that street in other city.
Is there a way to range found locations by distance from some location?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您想查找您所在城市的地址,您可以将城市添加到字符串中,只需获取您所在位置的城市名称并将其附加到字符串中,但它对用户不可见,并且如果您想更精确地查找地址那么你应该需要更具体的输入...!!
You can add the city into string if you want to find that address which is in your city, simply get the cityname of your location and append that to string but it keep it invisible to the user and if you want to find the address more precisely then you should need more specific input...!!