Azure Maps Routing Take two!

Published Aug 13 2021 09:00 AM 1,326 Views
Microsoft

Our previous Routing blog was so popular we thought we would follow up with more great routing scenarios that you can use in your solutions by just adding Azure Maps to your Azure Subscription ( Overview for Microsoft Azure Maps | Microsoft Docs )

Here are some more routing samples to guide you how you might add these features to your scenario:

 

 

IoTGirl_0-1628553005498.jpeg

 

Add traffic along your route:

 

Although the traffic is considered when you use the route API (unless you deactivate it) with this option you can visualize how the traffic is in the route.

 

https://aka.ms/TrafficAlongRoute

Add weather along your route:

 

Weather conditions can affect your drive, with the weather service APIs, powered by Accuweather, provided through Azure Maps you can check out the  weather conditions along your expected route.

 

https://aka.ms/WeatherAlongRoute

 

IoTGirl_1-1628553149012.png

 

 

IoTGirl_0-1628621846375.png

 

Get a route based on your vehicle type :

 

There are multiple factors to consider when we need to calculate the route for a truck rather than a car; width, height, length, weight and load are some of the options you can setup to calculate this route. Our sample shows you the difference between a truck and a car’s route based on such factors.

 

https://aka.ms/CarTruckRoute

 

Optimize waypoints to get a better route:

 

If you need to find out the shortest distance for a route of multiple points this option provides you what you need, in this sample you can find 7 addresses for a total of 138.85 km shortened to 92.36 km.

 

https://aka.ms/WaypointOptimization

 

IoTGirl_2-1628553547254.png

 

 

To see more great examples of how Azure Maps Routes can be used in so many more ways that you expected, Check out Azure Maps Web SDK Samples (azuremapscodesamples.azurewebsites.net)

Tutorial: Web SDK Tutorials - Search for a location and more

 

Links:

 

Thank you for checking out Azure Maps Route APIs. All of the samples above are directly accessible through the links and have Github repositories for you to leverage the sample code within your solutions.  If you need any assistance or have any questions feel free to post them in our Q&A section, we are here to help!

%3CLINGO-SUB%20id%3D%22lingo-sub-2629926%22%20slang%3D%22en-US%22%3EAzure%20Maps%20Routing%20Take%20two!%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2629926%22%20slang%3D%22en-US%22%3E%3CP%3EOur%20previous%20Routing%20blog%20was%20so%20popular%20we%20thought%20we%20would%20follow%20up%20with%20more%20great%20routing%20scenarios%20that%20you%20can%20use%20in%20your%20solutions%20by%20just%20adding%20Azure%20Maps%20to%20your%20Azure%20Subscription%20(%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fazure-maps%2Fabout-azure-maps%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EOverview%20for%20Microsoft%20Azure%20Maps%20%7C%20Microsoft%20Docs%3C%2FA%3E%26nbsp%3B)%3C%2FP%3E%0A%3CP%3EHere%20are%20some%20more%20routing%20samples%20to%20guide%20you%20how%20you%20might%20add%20these%20features%20to%20your%20scenario%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CTABLE%3E%0A%3CTBODY%3E%0A%3CTR%3E%0A%3CTD%20width%3D%2250%25%22%20class%3D%22lia-align-center%22%20style%3D%22width%3A%2050%25%3B%20vertical-align%3A%20middle%3B%20background-color%3A%20whitesmoke%3B%22%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22IoTGirl_0-1628553005498.jpeg%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F301922i1728F7ED9749DC9D%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22IoTGirl_0-1628553005498.jpeg%22%20alt%3D%22IoTGirl_0-1628553005498.jpeg%22%20%2F%3E%3C%2FSPAN%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%20width%3D%2250%25%22%3E%3CH3%20class%3D%22lia-indent-padding-left-30px%22%20id%3D%22toc-hId-2114322867%22%20id%3D%22toc-hId-2115062987%22%3E%3CSTRONG%3EAdd%20traffic%20along%20your%20route%3A%3C%2FSTRONG%3E%3C%2FH3%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3EAlthough%20the%20traffic%20is%20considered%20when%20you%20use%20the%20route%20API%20(unless%20you%20deactivate%20it)%20with%20this%20option%20you%20can%20visualize%20how%20the%20traffic%20is%20in%20the%20route.%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%3CA%20href%3D%22https%3A%2F%2Faka.ms%2FTrafficAlongRoute%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Faka.ms%2FTrafficAlongRoute%3C%2FA%3E%3C%2FP%3E%0A%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%3E%0A%3CTD%20width%3D%2250%25%22%3E%3CH3%20class%3D%22lia-indent-padding-left-30px%22%20id%3D%22toc-hId-306868404%22%20id%3D%22toc-hId-307608524%22%3E%3CSTRONG%3EAdd%20weather%20along%20your%20route%3A%3C%2FSTRONG%3E%3C%2FH3%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3EWeather%20conditions%20can%20affect%20your%20drive%2C%20with%20the%20weather%20service%20APIs%2C%20powered%20by%20Accuweather%2C%20provided%20through%20Azure%20Maps%20you%20can%20check%20out%20the%26nbsp%3B%20weather%20conditions%20along%20your%20expected%20route.%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%3CA%20href%3D%22https%3A%2F%2Faka.ms%2FWeatherAlongRoute%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Faka.ms%2FWeatherAlongRoute%3C%2FA%3E%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%20width%3D%2250%25%22%20class%3D%22lia-align-center%22%20style%3D%22width%3A%2050%25%3B%20vertical-align%3A%20middle%3B%20background-color%3A%20whitesmoke%3B%22%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22IoTGirl_1-1628553149012.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F301923i77B7C4D8C93B57BD%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22IoTGirl_1-1628553149012.png%22%20alt%3D%22IoTGirl_1-1628553149012.png%22%20%2F%3E%3C%2FSPAN%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%3E%0A%3CTD%20width%3D%2250%25%22%20class%3D%22lia-align-center%22%20style%3D%22width%3A%2050%25%3B%20vertical-align%3A%20middle%3B%20background-color%3A%20whitesmoke%3B%22%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22IoTGirl_0-1628621846375.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F302224iC43EA034B51DBA3A%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22IoTGirl_0-1628621846375.png%22%20alt%3D%22IoTGirl_0-1628621846375.png%22%20%2F%3E%3C%2FSPAN%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%20width%3D%2250%25%22%3E%3CH3%20class%3D%22lia-indent-padding-left-30px%22%20id%3D%22toc-hId--1500586059%22%20id%3D%22toc-hId--1499845939%22%3E%3CSTRONG%3EGet%20a%20route%20based%20on%20your%20vehicle%20type%20%3A%3C%2FSTRONG%3E%3C%2FH3%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3EThere%20are%20multiple%20factors%20to%20consider%20when%20we%20need%20to%20calculate%20the%20route%20for%20a%20truck%20rather%20than%20a%20car%3B%20width%2C%20height%2C%20length%2C%20weight%20and%20load%20are%20some%20of%20the%20options%20you%20can%20setup%20to%20calculate%20this%20route.%20Our%20sample%20shows%20you%20the%20difference%20between%20a%20truck%20and%20a%20car%E2%80%99s%20route%20based%20on%20such%20factors.%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%3CA%20href%3D%22https%3A%2F%2Faka.ms%2FCarTruckRoute%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Faka.ms%2FCarTruckRoute%3C%2FA%3E%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%26nbsp%3B%3C%2FP%3E%0A%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%3E%0A%3CTD%20width%3D%2250%25%22%3E%3CH3%20class%3D%22lia-indent-padding-left-30px%22%20id%3D%22toc-hId-986926774%22%20id%3D%22toc-hId-987666894%22%3E%3CSTRONG%3EOptimize%20waypoints%20to%20get%20a%20better%20route%3A%3C%2FSTRONG%3E%3C%2FH3%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3EIf%20you%20need%20to%20find%20out%20the%20shortest%20distance%20for%20a%20route%20of%20multiple%20points%20this%20option%20provides%20you%20what%20you%20need%2C%20in%20this%20sample%20you%20can%20find%207%20addresses%20for%20a%20total%20of%20138.85%20km%20shortened%20to%2092.36%20km.%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%3CA%20href%3D%22https%3A%2F%2Faka.ms%2FWaypointOptimization%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Faka.ms%2FWaypointOptimization%3C%2FA%3E%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%20width%3D%2250%25%22%20class%3D%22lia-align-center%22%20style%3D%22width%3A%2050%25%3B%20vertical-align%3A%20middle%3B%20background-color%3A%20whitesmoke%3B%22%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22IoTGirl_2-1628553547254.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F301924iFF7C8977BF47CE83%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22IoTGirl_2-1628553547254.png%22%20alt%3D%22IoTGirl_2-1628553547254.png%22%20%2F%3E%3C%2FSPAN%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3C%2FTBODY%3E%0A%3C%2FTABLE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3ETo%20see%20more%20great%20examples%20of%20how%20Azure%20Maps%20Routes%20can%20be%20used%20in%20so%20many%20more%20ways%20that%20you%20expected%2C%20Check%20out%20%3C%2FSTRONG%3E%3CA%20href%3D%22https%3A%2F%2Fazuremapscodesamples.azurewebsites.net%2F%3Fsearch%3DRoute%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EAzure%20Maps%20Web%20SDK%20Samples%20(azuremapscodesamples.azurewebsites.net)%3C%2FA%3E%3C%2FP%3E%0A%3CP%3ETutorial%3A%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fazure-maps%2Ftutorial-search-location%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EWeb%20SDK%20Tutorials%20-%20Search%20for%20a%20location%20and%20more%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ELinks%3A%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3EMicrosoft%20Azure%20maps%20Product%20page%3A%20%3CA%20href%3D%22https%3A%2F%2Fazure.microsoft.com%2Fen-ca%2Fservices%2Fazure-maps%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EAzure%20Maps%20%E2%80%93%20Geospatial%20Services%20APIs%20%7C%20Microsoft%20Azure%3C%2FA%3E%3C%2FLI%3E%0A%3CLI%3EDocumentation%3A%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fazure-maps%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EAzure%20Maps%20Documentation%20%7C%20Microsoft%20Docs%3C%2FA%3E%3C%2FLI%3E%0A%3CLI%3EWeb%20Control%20Documentation%3A%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fazure-maps%2Fhow-to-use-map-control%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EGetting%20started%20with%20Microsoft%20Azure%20Maps%20web%20map%20control%20%7C%20Microsoft%20Docs%3C%2FA%3E%3C%2FLI%3E%0A%3CLI%3EWeb%20Control%20Samples%3A%20%3CA%20href%3D%22https%3A%2F%2Fazuremapscodesamples.azurewebsites.net%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fazuremapscodesamples.azurewebsites.net%2F%3C%2FA%3E%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EThank%20you%20for%20checking%20out%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fazure.microsoft.com%2Fen-us%2Fservices%2Fazure-maps%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EAzure%20Maps%3C%2FA%3E%3CSPAN%3E%26nbsp%3BRoute%20APIs.%20All%20of%20the%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fazuremapscodesamples.azurewebsites.net%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Esamples%3C%2FA%3E%3CSPAN%3E%26nbsp%3Babove%20are%20directly%20accessible%20through%20the%20links%20and%20have%20Github%20repositories%20for%20you%20to%20leverage%20the%20sample%20code%20within%20your%20solutions.%20%26nbsp%3BIf%20you%20need%20any%20assistance%20or%20have%20any%20questions%20feel%20free%20to%20post%20them%20in%20our%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Faka.ms%2FAzureMapsQnA%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EQ%26amp%3BA%20section%3C%2FA%3E%3CSPAN%3E%2C%20we%20are%20here%20to%20help!%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-2629926%22%20slang%3D%22en-US%22%3E%3CTABLE%3E%0A%3CTBODY%3E%0A%3CTR%3E%0A%3CTD%20width%3D%2215%25%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22IoTGirl_0-1628551829748.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F301919iB8AD0E45D9582637%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22IoTGirl_0-1628551829748.png%22%20alt%3D%22IoTGirl_0-1628551829748.png%22%20%2F%3E%3C%2FSPAN%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%20width%3D%223%25%22%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%20width%3D%2282%25%22%3E%3CP%3EFollowing%20on%20from%20our%20prior%20blog%26nbsp%3Bon%20routing%2C%26nbsp%3BAzure%26nbsp%3BMaps%26nbsp%3Bhas%20even%20more%26nbsp%3Bways%20to%20further%20leverage%26nbsp%3Bour%20routing%20APIs%E2%80%A6.%26nbsp%3BFrom%20waypoint%20optimization%2C%26nbsp%3Btruck%20routing%2C%26nbsp%3Bmatrix%20routing%20and%20more.%3C%2FP%3E%0A%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3C%2FTBODY%3E%0A%3C%2FTABLE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-TEASER%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2629926%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAzure%20Maps%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Co-Authors
Version history
Last update:
‎Aug 10 2021 12:09 PM
Updated by:
www.000webhost.com