Microsoft Azure Spatial API

The Spatial API from Microsoft Azure, for spatial.

GitHub OpenAPI

Operations 9

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /spatial/geofence/{format} Check a device against an uploaded geofence · Microsoft Azure Get Spatial Geofence Format #
Ask an LLM
“Is my tracked device inside or near a geofence I uploaded to Azure Maps?”
“Can I add a search buffer around my stored geofence?”
Tell an agent
Check device {deviceId} at {lat},{lon} against uploaded geofence {udId}.
Get geofence proximity for device {deviceId} at {lat},{lon} using fence {udId} in {format} format.
POST /spatial/geofence/{format} Check a device against geofences in the request · Microsoft Azure Post Spatial Geofence Format #
Ask an LLM
“Can I test a coordinate against a geofence without uploading it first?”
“How do I send my own fence features and get the device's proximity back?”
Tell an agent
Check device {deviceId} at {lat},{lon} against the fence features {features} I provide.
Evaluate an inline geofence of type {type} for device {deviceId} at {lat},{lon} in {format}.
POST /spatial/buffer/{format} Buffer geometries sent in the request · Microsoft Azure Post Spatial Buffer Format #
Ask an LLM
“Can I buffer geometries I send directly instead of uploading them?”
“What does the inline buffer API return for each input feature?”
Tell an agent
Buffer the geometries {geometries} I'm sending by {distances}.
Return {format} buffers around my inline geometries {geometries}.
GET /spatial/buffer/{format} Buffer features from an uploaded dataset · Microsoft Azure Get Spatial Buffer Format #
Ask an LLM
“How do I draw a buffer zone around features I've uploaded to Azure Maps?”
“Can I use a negative distance to buffer inside a stored polygon?”
Tell an agent
Create buffers of {distances} meters around uploaded dataset {udid}.
Buffer the features in uploaded data {udid} by {distances} and return {format}.
POST /spatial/closestPoint/{format} Find nearest points among points in the request · Microsoft Azure Post Spatial Closestpoint Format #
Ask an LLM
“Can I find the nearest of a set of target points I send in the request body?”
“How do I get the closest point without uploading a dataset?”
Tell an agent
Find which of my inline points {features} is closest to {lat},{lon}.
Return the {numberOfClosestPoints} closest of the posted points to {lat},{lon} as {format}.
GET /spatial/closestPoint/{format} Find nearest points in an uploaded dataset · Microsoft Azure Get Spatial Closestpoint Format #
Ask an LLM
“Which of my uploaded points is closest to a given location?”
“Can I get more than one closest point back from a stored dataset?”
Tell an agent
Find the closest point in uploaded dataset {udid} to {lat},{lon}.
Return the {numberOfClosestPoints} nearest points in dataset {udid} to {lat},{lon} in {format}.
POST /spatial/pointInPolygon/{format} Test if a point is inside polygons in the request · Microsoft Azure Post Spatial Pointinpolygon Format #
Ask an LLM
“Can I check point-in-polygon against polygons I post rather than upload?”
“Are non-polygon geometries ignored when I send inline features?”
Tell an agent
Check whether {lat},{lon} is inside the polygons {features} I'm sending.
Test point {lat},{lon} against my inline polygon collection of type {type}, returning {format}.
GET /spatial/pointInPolygon/{format} Test if a point is inside uploaded polygons · Microsoft Azure Get Spatial Pointinpolygon Format #
Ask an LLM
“Is a coordinate inside any of the polygons I uploaded to Azure Maps?”
“Which stored polygon contains a given latitude and longitude?”
Tell an agent
Check whether {lat},{lon} falls inside the polygons in uploaded dataset {udid}.
Tell me if point {lat},{lon} is within stored polygon set {udid}, answering in {format}.
GET /spatial/greatCircleDistance/{format} Calculate great-circle distance between points · Microsoft Azure Get Spatial Greatcircledistance Format #
Ask an LLM
“What is the shortest distance over the earth's surface between two coordinates?”
“How do I get the great-circle distance rather than a straight-line one?”
Tell an agent
Calculate the great-circle distance for coordinates {query}.
Give me the surface distance between the two points in {query} as {format}.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/microsoft-azure:microsoft-azure-spatial-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

microsoft-azure-spatial-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Microsoft Azure Azure Maps Service Spatial API
  version: '1.0'
  description: Azure Maps Spatial REST APIs
servers:
- url: https://atlas.microsoft.com
security:
- AADToken:
  - https://atlas.microsoft.com/.default
- SharedKey: []
- SasToken: []
tags:


# --- truncated at 32 KB (49 KB total) ---
# Full source: https://artifacts.apis.io/microsoft-azure/openapi/microsoft-azure-spatial-api-openapi.yml