How to get Google Maps Public Transit Directions by HTTP server-side request
问题 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