Sunday, July 8, 2012
Public transit routing and layer in the Google Maps API
Google Maps API now enables developers to add Transit data, including public transit directions, to their maps and apps.
Whether you're planning a trip from your computer or on the spur of the moment from your mobile device, Google Maps helps you find directions in more than 475 regions around the world. Today we're pleased to announce that public transit directions are now available in the Google Maps API.
Public transit has been one of the most requested features by Maps API developers, and you can now use it in both the Google Maps Javascript v3 and the Directions Web Service. It's simple for you to update your apps to also offer routing by public transit in addition to driving, bicycling, and walking. The transit route responses include the number of stops, direction of travel and more. It will also tell you what type of vehicle you will be travelling on. Everything from a typical subway train to a funicular!
To support the launch of routing by public transit we're also adding the Transit Layer to the Maps API. For example if you are a retail chain, the Transit Layer allows you to show all the bus major transit lines that run past each store. The Transit Layer can be displayed by enabling the TransitLayer(), it’s as simple as that!
If you're using a Google Map, you can now use the Directions API web service to add this useful and helpful transit data to your map. As always, if you have any questions about public transit in the Google Maps API, we recommend posting to our sponsored tag on Stack Overflow, or if you’re at Google I/O swing by at the Google Maps Developer Sandbox.
Subscribe to:
Posts (Atom)