Skip to content

Instantly share code, notes, and snippets.

@kartben
Last active December 12, 2019 18:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kartben/deba6c69f6e506e94bc2a527badf1269 to your computer and use it in GitHub Desktop.
Save kartben/deba6c69f6e506e94bc2a527badf1269 to your computer and use it in GitHub Desktop.
@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