2. What is Azure Maps
A platform of geospatial
APIs, powered by real-
time integration with
world class mobility &
data partners
3. A platform of geospatial APIs for the
enterprise
Maps
Render maps and satellite
imagery across many
geographies in several styles
SDKs
Web and Android SDKs to
integrate Azure Maps into
applications
Routing
Multi-algorithmic routing,
batch routing and matrix
routing
Search
Find addresses, points of
interest, landmarks, using a
multitude of search
algorithms or in batch
Spatial Operations
Create Geofences, measure
great circle distance, closest
point and point in polygon
Traffic
Real-time traffic flow and
incident detail, measuring
distance to back or front of
the line
Time Zones
Obtain time zone and
current time information
from any location
Geolocation
Query for the location
of an IP address
Mobility
(Public Transit)
Get real time intelligence on
public transit services
Data Storage
Host your private map data
in Azure Maps
Weather services
Historical, Current and Predicted
Weather Services with Radar and
Satellite maps
Power BI integration
Integration with Power BI w/ rich
data service and more powerful
capabilities
Gov Cloud support
Azure Maps services availability
through Azure Government Cloud
4. Getting Started With Azure Maps
Create a Free Azure Account
https://azure.microsoft.com/en-us/
1
Create an Azure Maps Account
through the Azure Portal
https://portal.azure.com/
•Provide a name for the account.
•Create a new resource group.
•Select the subscription and select the pricing
tier for the account.
•For Mobility you will use Pricing Tier S1
2
5. Before we spend billions on new
infrastructure, we should
leverage data to better utilize
current systems
6.
7. Introducing Moovit
• The world’s largest repository
for mobility data
• Used to build unique Mobility
as a Service solutions powered
by mobility analytics
9. Moovit Core Features
• Multi-Modal Trip Planning
• Step-by-Step Directions
• Bikes, Scooters, Car-Sharing
• Detailed Lines Info
• Real-Time
• Service Alerts
• Offline capabilities
• Accessibility features
10. Building an accessible application with Azure
Maps
• When it comes to rich interactive content like a map, some common accessibility
considerations are:
• Support the screen reader for users who have difficulty seeing the web application.
• Have multiple methods for interacting with and navigating the web application such as mouse, touch, and
keyboard.
• Ensure color contrast is such that colors don’t blend together and become hard to distinguish from each
other.
• The Azure Maps Web SDK comes prebuilt with many accessibility features such as:
• Screen reader descriptions when the map moves and when the user focuses on a control or popup.
• Mouse, touch, and keyboard support.
• Accessible color contrast support in the road map style.
More Details: https://docs.microsoft.com/en-us/azure/azure-maps/map-accessibility
12. Mobility
Service
Overview
Get Car Share Info
Car Share Info API
Applies to: S1 pricing tier.
Service allows to request static and real-time information for a given car share vehicle. Response contains details such as
availability and vacancy information and operator details. The service supplements Nearby Transit API.
Get Metro Area Info
Metro Area Info API
Applies to: S1 pricing tier.
Service allows to request additional information for metro areas in which the Azure Maps Mobility Service is available.
Information such as supported transit types, transit agencies and active alerts is available, depending on the options selected.
Get Metro Area
Metro Area API
Applies to: S1 pricing tier.
Service allows to request metro areas in which the Azure Maps Mobility Service is available. The service supports filtering
results by country or coordinate location. Information returned includes Metro Area details such as metro Id, name and a
representation of the metro area geometry in GeoJSON format.
Get Nearby Transit
Find Nearby Transit API
Applies to: S1 pricing tier.
Get Nearby Transit service allows you to search transit objects, for example, public transit stops ans shared bikes around a
given location returning the transit object details. Service allows users to search for specific object types and within a given
radius returning a set of transit object with object details. Additional information such as transit operator information is
returned depending on the options selected. The returned information can be used for further processing such as requesting
real-time arrivals for the stop or transit stop details such as main transit type of most lines stopping for a given public, active
service alerts or main transport agency.
Get Real Time Arrivals
Real-time Arrivals API
Applies to: S1 pricing tier.
Get Real Time Arrivals API returns for a given a stop, line or location the requested number of real-time arrivals. Endpoint
support different modes to request real-time arrivals such as number of live arrivals for all lines arriving at the specified stop or
all arrivals of a line to stops near the user’s location. The API supports parameters to request one or multiple public transit types
such as bus, tram and subway, maximum number if arrivals, and prefer a specific transit agency operating in the area. In some
cases real-time arrivals may not be available, for example, if arrival is too far in the future or transit vehicle does not have
capability to share the real-time location. This is symbolized in a scheduleType field present in all responses.
Get Transit Dock Info
Transit Dock Info API
Applies to: S1 pricing tier.
Get Transit Dock Info API allows to request static and real-time information for a given bike or scooter docking station.
Response includes availability and vacancy information and operator details. The service supplements Nearby Transit API that
allows you to search nearby bike and scooter docking stations.
Get Transit Itinerary
Transit Itinerary API
Applies to: S1 pricing tier.
Returns data according to an itinerary Id previously returned by Transit Route API. The basic info contains data as to the various
legs comprising the itinerary, including the locations, public transit lines, start and end times. User can request additional
routing information such as the shape of the itinerary and detailed itinerary schedules is also available, depending on the
options selected. An itinerary is available up to 24 hours following a search request.
Get Transit Line Info
Transit Line Info API
Applies to: S1 pricing tier. Your scenario might require requesting transit line specific data such as stops and line geometry.
Transit Line Info service allows you to request line group by line group id returning a line group comprised a set of lines.
Additional information such as 24 hours static schedule, active alerts for the line group and line patterns is also available,
depending on the options selected. Mobility services uses a parallel data model for public transit lines and line groups. Usually
line group contains 2 lines, one going from A to B, and the other returning from B to A, both operating by the same Public
Transport Agency having the same line number. We recommend you review our guidance article to understand the concepts
of lines and line groups.
Get Transit Route
Transit Route API
Applies to: S1 pricing tier.
Get Transit Route API will allow trip planning returning the best possible route options between an origin and destination by
using multi-modal search. Service provides a variety of travel modes, including walk, bike, and public transit. The API supports
parameters to request one or multiple public transit types such as bus, tram and subway, and focus on certain types of bikes,
and prefer a specific transit agency operating in the area. Also, service provides options to choose optimal route with least walk
or transfers and specify arrival or departure times when user need to be at a specific destination by a certain time.
Get Transit Stop Info
Transit Stop Info API
Applies to: S1 pricing tier.
Get Transit Stop Info service allows you to request information for a given public transit stop. Basic information returned
includes details such as main transit type of most lines stopping for a given public and main transport agency. Additional
details such as stop lines and active service alerts for specified stop are also available, depending on the options selected.
13. Data
structures in
Azure Maps
Mobility
Service
•Mobility Service data is grouped by supported metro areas. Metro areas don't follow
city boundaries. A metro area can contain multiple cities, densely populated city, and
surrounding cities. In fact, a country/region can be one metro area.Metro Area
•Transit stops can be referred to by two types of IDs, the General Transit Feed
Specification (GFTS) ID and the Azure Maps stop ID. The GFTS ID is referred to as the
stopKey and the Azure Maps stop ID is referred to as stopID. When frequently
referring to transit stops, you're encouraged to use the Azure Maps stop ID. stopID is
more stable and likely to stay the same as long as the physical stop exists.
Stop ID
•A Line Group is an entity, which groups together all lines that are logically part of the
same group. Usually, a line group contains two lines, one from point A to B, and the
other returning from point B to A. Both lines would belong to the same Public
Transport agency and have the same line number. However, there may be cases in
which a line group has more than two lines or only a single line within it.
Line Groups
•As discussed above, each line group is composed of a set of lines. Each line group is
composed of two lines, and each line describes a direction. However, there are cases
in which more lines compose a line group. For example, there's a line that sometimes
detours through a certain neighborhood and sometimes doesn't. In both cases, it
operates under the same line number. Also a line group can be composed of a single
line. A circular line with a single direction is a ling group with one line.
Lines
14. Before you Begin using the Mobility Services
• Use the Search API to convert addresses to Lat Long pairs
(Address Geocoding)
• Use the Metro Area API to get the Metro ID for the location
• Mobility Service data is grouped by supported metro areas.
• Metro areas don't follow city boundaries.
• A metro area can contain multiple cities, densely populated city,
and surrounding cities. In fact, a country/region can be one metro
area.
15. Get Metro Area
• Service allows to request
metro areas in which the
Azure Maps Mobility
Service is available.
16. Get Metro Area Info
• Service allows to request
additional information for metro
areas in which the Azure Maps
Mobility Service is available.
• Information such as supported
transit types, transit agencies
and active alerts is available,
depending on the options
selected.
17. Get Nearby Transit
• Get Nearby Transit service
allows you to search transit
objects, for example, public
transit stops and shared
bikes around a given
location returning the
transit object details.
18. Get Transit Route
• Get Transit Route API will allow trip planning
returning the best possible route options between
an origin and destination by using multi-modal
search. Service provides a variety of travel modes,
including walk, bike, and public transit.
• The API supports parameters to request one or
multiple public transit types such as bus, tram and
subway, and focus on certain types of bikes, and
prefer a specific transit agency operating in the
area. Also, service provides options to choose
optimal route with least walk or transfers and specify
arrival or departure times when user need to be at a
specific destination by a certain time.
GET https://atlas.microsoft.com/mobility/transit/route/json?api-
version=1.0&metroId=121&origin=40.680903,-
73.983723&originType=position&destination=40.682051,-
73.976702&destinationType=position
Sample Request
{
"results": [
{
"itineraryId": "68fa6e31-d1a4-4457-a15b-8f5036a76a78---201909167EB6D19458C443BFAD897246FD
"departureTime": "2019-09-16T18:04:53Z",
"arrivalTime": "2019-09-16T18:08:07Z",
"travelTimeInSeconds": 194,
"numberOfLegs": 1,
"legs": [
{
"legType": "Bicycle",
"legStartTime": "2019-09-16T18:04:53Z",
"legEndTime": "2019-09-16T18:08:07Z",
"lengthInMeters": 877
}
]
},
{
"itineraryId": "68fa6e31-d1a4-4457-a15b-8f5036a76a78---20190916E4C79AA6602341F0973B94A3A79
"departureTime": "2019-09-16T18:04:53Z",
"arrivalTime": "2019-09-16T18:07:57Z",
"travelTimeInSeconds": 184,
"numberOfLegs": 1,
"legs": [
{
"legType": "Bicycle",
"legStartTime": "2019-09-16T18:04:53Z",
"legEndTime": "2019-09-16T18:07:57Z",
"lengthInMeters": 851
}
]
},
{
"itineraryId": "68fa6e31-d1a4-4457-a15b-8f5036a76a78---201909168C38C8E44DEC41B7B6B7DB3AD
"departureTime": "2019-09-16T18:04:53Z",
"arrivalTime": "2019-09-16T18:13:33Z",
19. Jupyter Notebooks Walkthrough
• Geocoding to find the lat long for any address
• Finding the MetroID for use in the Mobility API for the
address you are analyzing
• Using the Find Nearby Transit Options API
Code Sample
22. Get Nearby Transit Options
• The Get Nearby Transit service (http://bit.ly/31Ui6Iw) allows you to search transit
objects, for example, public transit stops and shared bikes around a given location
returning the transit object details. The Service allows users to search for specific
object types and within a given radius returning a set of transit object with object
details.
23. Transit Stops, Directions, Distance, Routes
• Use the Get Transit Options
API for finding nearby Transit
Stops.
• Use the Route API for getting
directions and distance to
Transit Stop
• Use the Get Transit Stop API
to get details on the Transit
Stop including routes & lines
that go through that stop