如何确定经纬度坐标长上与谷歌地图API第2路经纬度、长上、坐标、地图

由网友(一又二分之一的夏天.)分享简介:我已经使用谷歌的地理地址和使用经纬度/长已经得到了地址。我如何确定,如果我在路上呢?基本上,点击测试道路?我目前正在使用的位置经理纬度/经度和GeoAddress是相同的道路,毗邻的道路。解决方案 最终解决方案使用反向通过谷歌地理编码API 的地理编码。术语地理编码一般指翻译人类可读地址到地图上的一个位置。做相反的过...

我已经使用谷歌的地理地址和使用经纬度/长已经得到了地址。我如何确定,如果我在路上呢?基本上,点击测试道路?我目前正在使用的位置经理纬度/经度和GeoAddress是相同的道路,毗邻的道路。

解决方案

最终解决方案

使用反向通过谷歌地理编码API 的地理编码。

  

术语地理编码一般指翻译人类可读   地址到地图上的一个位置。做相反的过程,   平移地图上的一个位置到一个人类可读地址,是   被称为反向地理编码。

     

地理编码API支持直接使用经纬度反向地理编码   参数。例如,下面的查询包含   在布鲁克林的位置的纬度/经度值:

http://maps.googleapis.com/maps/api/geo$c$c/json?latlng=40.714224,-73.961452&sensor=true_or_false

本文档介绍了如何跨preT JSON的结果,但StackOverflow上有不同的答案,解决更有效的方法来分析数据。

http://stackoverflow.com/a/8095967/1085891 http://stackoverflow.com/a/8314094/1085891 http://stackoverflow.com/a/6335080/1085891

可能的解决方案

Getting最近的街道/公路坐标机器人 - 在这个问题的答案可能你指出正确的方向。

  利用谷歌地图,将经纬度转换为xy坐标,导入CAD制图

您可以直接使用方向API:http://maps.googleapis.com/maps/api/directions/json?origin=51,19&destination=51,19&sensor=false

您可以使用API​​找到方向这将随后提供最接近的道路?

棒位置路上Android地图V2 GPSLocator - 应用程序使用GPS 来找到当前(最近)地点 - 可能是有帮助的;不能肯定这一点。 捕捉到道路的Andr​​oid - 完全一样的问题

快速搜索结果

捕捉到就近的街道 地图API博客使用GDirections.loadFromWaypoints Finding最近的街道给予LAT-长的位置 Driving路线从我的位置在谷歌地图Android的API V2目的地

未解决类似的问题

Trace只有在路在谷歌的位置地图V2的Andr​​oid 谷歌地图V2捕捉到道问题

I have used Google geo address and using lat/long have got the address. How do I determine if I am on road on not? Basically hit-test for road? I am currently using location manager for lat/long and the GeoAddress is same for on road and next to road.

解决方案

Final Solution

Use reverse geocoding via the Google Geocoding API.

The term geocoding generally refers to translating a human-readable address into a location on a map. The process of doing the converse, translating a location on the map into a human-readable address, is known as reverse geocoding.

The Geocoding API supports reverse geocoding directly using the latlng parameter. For example, the following query contains the latitude/longitude value for a location in Brooklyn:

http://maps.googleapis.com/maps/api/geocode/json?latlng=40.714224,-73.961452&sensor=true_or_false

The docs explain how to interpret the json results but StackOverflow has various answers addressing more efficient ways to parse the data.

http://stackoverflow.com/a/8095967/1085891 http://stackoverflow.com/a/8314094/1085891 http://stackoverflow.com/a/6335080/1085891

Possible Solutions

Getting the nearest street/road coordinates in android - the answer to this question may point you in the right direction.

You can use directions api directly: http://maps.googleapis.com/maps/api/directions/json?origin=51,19&destination=51,19&sensor=false

Could you use the API to find directions which would then provide the closest road?

Stick position to road on android maps v2 GPSLocator - App to Find Current (Nearest) Location using GPS - possibly helpful; not so sure on this one. Snap to Roads Android - Exact same question

Quick Search Results

Snap to nearest street Maps API Blog using GDirections.loadFromWaypoints Finding nearest street given a lat-long location Driving route from my location to destination in Google Maps Android API V2

Unsolved Similar Questions

Trace the location only on Road in Google maps V2 android Google Maps V2 Snap to Road Issue
阅读全文

相关推荐

最新文章