Back to the developer portal
Maps Servicev1 Planned

Maps Service API Documentation

One canonical reference for directions, matrix, search, autocomplete, reverse geocoding, nearby places, place details, and map matching at omysyria.com.

Watch the video walkthrough

A recorded walkthrough of the O My Syria Maps service, in Arabic, for anyone who prefers watching to reading.

One Maps Service key for every operation

Create an organization-scoped key in the Maps Service dashboard. The full key is shown once and works across every enabled operation in that organization.

Security boundary

Send the key in X-API-Key or Bearer from your trusted server only. Never put it in browser/mobile code, URLs, or logs. Per-service commercial quotas remain planned.

API v1 reference

Eight unified service contracts

Operations remain Planned until their authorized hosted rollout is complete. The examples below are the canonical public contracts.

POST /v1/directionsPlanned

Request example

curl -X POST 'https://omysyria.com/v1/directions'
  -H 'X-API-Key: YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  --data '{"origin":{"lat":33.5138,"lng":36.2765},"destination":{"lat":33.5102,"lng":36.2913},"preference":"fastest","costing":"auto"}'

Response shape

{
  "summary": {
    "distance": {
      "meters": 3900,
      "kilometers": 3.9
    },
    "duration": {
      "seconds": 720,
      "minutes": 12
    }
  },
  "geometry": "polyline6…"
}

Shared safe responses

CodeHTTPMeaning
maps_api_key_required401The customer key is missing.
maps_api_key_invalid403The key is invalid or inactive.
invalid_input422Input does not match the bounded contract.
rate_limit_exceeded429The current request limit was reached.
maps_unavailable503The operation is disabled or its dependency is unavailable.