title | description | author | ms.author | ms.date | ms.topic | ms.service | services | ms.custom |
---|---|---|---|---|---|---|---|---|
Tutorial - Migrate from Google Maps to Azure Maps | Microsoft Azure Maps |
Tutorial on how to migrate from Google Maps to Microsoft Azure Maps. Guidance walks you through how to switch to Azure Maps APIs and SDKs. |
stevemunk |
v-munksteve |
09/23/2020 |
tutorial |
azure-maps |
azure-maps |
This article provides insights on how to migrate web, mobile and server-based applications from Google Maps to the Microsoft Azure Maps platform. This tutorial includes comparative code samples, migration suggestions, and best practices for migrating to Azure Maps. In this tutorial, you'll learn:
[!div class="checklist"]
- High-level comparison for equivalent Google Maps features available in Azure Maps.
- What licensing differences to take into consideration.
- How to plan your migration.
- Where to find technical resources and support.
- Sign in to the Azure portal. If you don't have an Azure subscription, create a free account before you begin.
- Make an Azure Maps account
- Obtain a primary subscription key, also known as the primary key or the subscription key. For more information on authentication in Azure Maps, see manage authentication in Azure Maps.
Azure Maps provides developers from all industries powerful geospatial capabilities. The capabilities are packed with regularly updated map data to provide geographic context for web, and mobile applications. Azure Maps has an Azure One API compliant set of REST APIs. The REST APIs offer Maps Rendering, Search, Routing, Traffic, Time Zones, Geolocation, Geofencing, Map Data, Weather, and Spatial Operations. Operations are accompanied by both Web and Android SDKs to make development easy, flexible, and portable across multiple platforms.
The table provides a high-level list of Azure Maps features, which correspond to Google Maps features. This list doesn't show all of the Azure Maps features. Additional Azure Maps features include: accessibility, geofencing, isochrones, spatial operations, direct map tile access, batch services, and data coverage comparisons (that is, imagery coverage).
Google Maps feature | Azure Maps support |
---|---|
Web SDK | ✓ |
Android SDK | ✓ |
iOS SDK | Planned |
REST Service APIs | ✓ |
Directions (Routing) | ✓ |
Distance Matrix | ✓ |
Elevation | ✓ |
Geocoding (Forward/Reverse) | ✓ |
Geolocation | N/A |
Nearest Roads | ✓ |
Places Search | ✓ |
Places Details | N/A – website & phone number available |
Places Photos | N/A |
Place Autocomplete | ✓ |
Snap to Road | ✓ |
Speed Limits | ✓ |
Static Maps | ✓ |
Static Street View | N/A |
Time Zone | ✓ |
Maps Embedded API | N/A |
Map URLs | N/A |
Google Maps provides basic key-based authentication. Azure Maps provides both basic key-based authentication and Azure Active Directory authentication. Azure Active Directory authentication provides more security features, compared to the basic key-based authentication.
When migrating to Azure Maps from Google Maps, consider the following points about licensing.
- Azure Maps charges for the usage of interactive maps, which is based on the number of loaded map tiles. On the other hand, Google Maps charges for loading the map control. In the interactive Azure Maps SDKs, map tiles are automatically cached to reduce the development cost. One Azure Maps transaction is generated for every 15 map tiles that are loaded. The interactive Azure Maps SDKs uses 512-pixel tiles, and on average, it generates one or less transactions per page view.
- Often, it's more cost effective to replace static map images from Google Maps web services with the Azure Maps Web SDK. The Azure Maps Web SDK uses map tiles. Unless the user pans and zooms the map, the service often generates only a fraction of a transaction per map load. The Azure Maps web SDK has options for disabling panning and zooming, if desired. Additionally, the Azure Maps web SDK provides a lot more visualization options than the static map web service.
- Azure Maps allows data from its platform to be stored in Azure. Also, data can be cached elsewhere for up to six months as per the terms of use.
Here are some related resources for Azure Maps:
- Azure Maps pricing page
- Azure pricing calculator
- Azure Maps term of use (included in the Microsoft Online Services Terms)
- Choose the right pricing tier in Azure Maps
The following is a high-level migration plan.
- Take inventory of the Google Maps SDKs and services that your application uses. Verify that Azure Maps provides alternative SDKs and services.
- If you don't already have one, create an Azure subscription at https://azure.com.
- Create an Azure Maps account (documentation) and authentication key or Azure Active Directory (documentation).
- Migrate your application code.
- Test your migrated application.
- Deploy your migrated application to production.
To create an Azure Maps account and get access to the Azure Maps platform, follow these steps:
- If you don't have an Azure subscription, create a free account before you begin.
- Sign in to the Azure portal.
- Create an Azure Maps account.
- Get your Azure Maps subscription key or setup Azure Active Directory authentication for enhanced security.
Here's a list of useful technical resources for Azure Maps.
- Overview: https://azure.com/maps
- Documentation: https://aka.ms/AzureMapsDocs
- Web SDK Code Samples: https://aka.ms/AzureMapsSamples
- Developer Forums: https://aka.ms/AzureMapsForums
- Videos: https://aka.ms/AzureMapsVideos
- Blog: https://aka.ms/AzureMapsBlog
- Tech Blog: https://aka.ms/AzureMapsTechBlog
- Azure Maps Feedback (UserVoice): https://aka.ms/AzureMapsFeedback
- Azure Maps Jupyter Notebook
Developers can seek migration support through the forums or through one of the many Azure support options: https://azure.microsoft.com/support/options
No resources to be cleaned up.
Learn the details of how to migrate your Google Maps application with these articles:
[!div class="nextstepaction"] Migrate a web app