driving-directions

How to get Google Maps Public Transit Directions by HTTP server-side request

天涯浪子 提交于 2019-11-26 22:59:16
问题 I use such urls like: http://maps.google.com/?saddr=546%206th%20Avenue,%20New%20York,%20NY%2010011%20(Sixth%20Avenue,%20New%20York)&daddr=W%20103rd%20St,%20New%20York,%20NY%20&dirflg=r But it returns full html page. Does anybody know how to get such info in json or xml or any parsable format? I need public transit. 回答1: You just add &output=json to the end of the url. 回答2: I'd like to extend Mathias's answer a little bit. There's no official Google Transit API at the momemnt. Transits are

Google map driving direction source code for their example?

拈花ヽ惹草 提交于 2019-11-26 15:28:48
问题 Google gave an example http://googlemapsapi.blogspot.com/2007/05/driving-directions-support-added-to.html Is the source code available somewhere or a tutorial on that precise example ? 回答1: Here's a very basic example using the v3 API: <!DOCTYPE html> <html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"/> <title>Google Maps API v3 Directions Example</title> <script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script> </head> <body

J2ME/Android/BlackBerry - driving directions, route between two locations

徘徊边缘 提交于 2019-11-25 22:31:52
问题 On Android 1.0 there was a com.google.googlenav namespace for driving directions: Route - Improved Google Driving Directions But in newer SDK it was removed by some reason... Android: DrivingDirections removed since API 1.0 - how to do it in 1.5/1.6? On BlackBerry there is also lack of APIs for such stuff: how to find the route between two places in Blackberry? csie-tw gives a workaround (query gmaps for kml file and parse it): Android - Driving Direction (Route Path) Also Andrea made a