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.
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. Happy commuting!