Maps Platform
Product updates, customer stories, and tips and tricks on Google Maps Platform
Public transit routing and layer now available in the Google Maps API
Wednesday, June 27, 2012
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. Happy commuting!
Posted by Nabil Naghdy, Product Manager, Google Maps API
Labels
5 Great Maps
ads
advertising
africa
Andorra
Android
App Engine
art
Australia
Autocomplete
Boston
brazil
Bruce Springsteen
Bulgaria
Campus Map
Chrome
City 24/7
Code for America
COM API
Computerlogy
creative advertising campaigns
Custom Map Types
design
developer
Developer Challenge
Developer stories
Directions API
Drawing Tools
Driving Directions
Earth
Earth API
Elevation API
environment
epungo
Estonia
Europe
Fab Friday
flash
Fusion Tables
GAE
games
GDAL
Gears
geo
Geodesic Lines
Germany
Gibraltar
GIS
Global Economy
gme
Google Analytics
Google App Engine
Google Earth
Google Earth API
Google I/O
Google Maps
Google Maps API
Google Maps Engine
Google Places API
Google Places API Developer Challenge
Google Street View API
government
Hackathon
Hamburg
heat map
heatmap
hiking
Hungary
iOS
JavaScript
jQuery
kenya
KML
Latitude API
Latvia
launch
Lithuania
local search
London
Mac
Map of the Week
maps
Maps API
Maps API for Flash
Maps Data API
Maps Zen
Marker Clusterer
Marketing
Mars
meetup
mobile
moca
modern art
More Than a Map
Morethanamap
Movies
Neighborhoods
New York City
Office Hours
Olympics
Panoramio
photos
Place Summaries
Places API
Plus
polygons
Premier
public transit
public transit layer
Python
real estate
rock
sao paulo
screencast
SketchUp
Slovakia
Slovenia
South Africa
Spain
Spatial Data Files
Static Maps API
street view
Styled Maps
Sydney
Track
traffic layer
Transportation
Tripline
Twitter
UN
United Nations
V3
Vancouver Olympics
visualizations
Volkswagen
VW
web
youtube
Archive
2018
Nov
Jul
Jun
May
Mar
Feb
2017
Nov
Jun
May
Apr
Mar
Feb
Jan
2016
Dec
Nov
Oct
Sep
Aug
Jul
Jun
May
Apr
Feb
2015
Dec
Nov
Oct
Sep
Aug
Jul
Jun
May
Apr
Mar
Feb
Jan
2014
Dec
Nov
Oct
Sep
Aug
Jul
Jun
May
Apr
Mar
Feb
2013
Dec
Nov
Oct
Sep
Aug
Jul
Jun
May
Apr
Mar
Feb
Jan
2012
Dec
Nov
Oct
Sep
Aug
Jul
Jun
May
Apr
Mar
Feb
Jan
2011
Dec
Nov
Oct
Sep
Aug
Jul
May
Apr
Mar
Feb
Jan
2010
Dec
Nov
Oct
Sep
Aug
Jul
Jun
May
Apr
Mar
Feb
Jan
2009
Dec
Nov
Oct
Sep
Aug
Jul
Jun
May
Apr
Mar
Feb
Jan
2008
Dec
Nov
Oct
Sep
Aug
Jul
Jun
May
Feed
Follow @GMapsPlatform
Follow
Google Maps Platform Website
Give us feedback in our
Product Forums
.