开发者

google map query string format for addresses instead of lat/long?

I am developing an android application for which I am using latitude/longitude to draw a map

http://maps.google.com/maps?saddr=47.295601,0.010586&daddr=47.295601,1.010586
+t‌​o:47.295601,2.010586+to:47.295601,3.010586+to:42.223501,2.011586
+to:35.215621,1.020456

but now I want to draw the map through addre开发者_Python百科sses instead of latitude/Longitude. I googled but not found any such help for query string to Draw map from addresses.


Do the same thing but separate each part of the address with commas.

http://maps.google.com/maps?saddr=47.295601,0.010586
&daddr=123 Main Street, Houston, Texas, 77707
+t‌​o:47.295601,2.010586
+to:321 Avenue A, Baton Rouge, Lousiana, 68594
+to:42.223501,2.011586
+to:35.215621,1.020456

You may use a combination of coordinates and addresses.


Do you mean something like http://maps.google.com/maps?q=from:champs+elysees,+paris+to:+toulouse+to:Marseille


Why dont you use the Geocoder to receive the LatLng values?

Geocoder geocoder = new Geocoder(this, Locale.getDefault());
List<Address> adr = geocoder.getFromLocationName(locationName, maxResults);
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜