Skip to content

Instantly share code, notes, and snippets.

@kartben

kartben/azuremaps.http

Last active Dec 12, 2019
Embed
What would you like to do?
@subscription-key = REPLACE_WITH_YOUR_AZURE_MAPS_KEY
@SeattleWA = 47.60323,-122.33028
@RedmondWA = 47.67491,-122.124
###
# GetTimezoneByCoordinates for Seattle WA
###
GET https://atlas.microsoft.com/timezone/byCoordinates/json?subscription-key={{subscription-key}}&api-version=1.0&options=all&query={{SeattleWA}}
###
# Get route from Seattle WA to Redmond WA
###
GET https://atlas.microsoft.com/route/directions/json?api-version=1.0&subscription-key={{subscription-key}}&query={{RedmondWA}}:{{SeattleWA}}&routeRepresentation=polyline&travelMode=car&view=Auto
###
# Render tile for Seattle WA
###
GET https://atlas.microsoft.com/map/static/png?subscription-key={{subscription-key}}&api-version=1.0&layer=basic&style=main&zoom=10&center=-122.33028,47.67491
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.