List of all street and road names in Google in API

谁说我不能喝 提交于 2019-12-03 09:19:34

问题


Am doing a location based app.When using GPS, it provides with street names from Google API. When user need to enter it manually, for a autocomplete text view am in need of names of all street and roads in Google API. Where could i get all street and roads name which google API provides when using GPS? I ve searched everywhere but in vain :( Thanks in advance.


回答1:


As far as I can find, Google does not provide a database of street names for public download, but this site does: Open Street Map

These databases are available for free download. They contain geographical information about the whole planet. I hope you find them useful.




回答2:


Thanks above :) Actually I found an another way too.. the names of the streets and roads in xml returned by google api are marked as "route".. so I parsed the xml having type="route" to get only road and street names!!




回答3:


The Google Places API suggests search results for city/street names etc. which you can use for an AutoCompleteTextView.

Here is a running JS demo for testing the results.

Because your using Maps API V3, here is the reference to google.maps.places.Autocomplete

Here you can find an API for Android.



来源:https://stackoverflow.com/questions/10997275/list-of-all-street-and-road-names-in-google-in-api

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!