Arohon Map API

Bangladesh Navigation Map API — Routing, Geocoding & Vector Tiles

Authentication: All API requests (except /health) require Authorization: Bearer YOUR_API_KEY

Sign up or Log in to get your API key.

Base URL

https://map.arohon.co

Route

GET /v1/route

Calculate a route between two points. Returns distance, duration, polyline (for map drawing), and turn-by-turn steps.

Params: origin=lat,lng   destination=lat,lng   vehicle_type=car|bike|motorbike|pedestrian

curl -H "Authorization: Bearer YOUR_API_KEY" \
  "https://map.arohon.co/v1/route?origin=23.81,90.41&destination=23.75,90.37&vehicle_type=car"

Response: {"distance": 10.89, "duration": 642, "polyline": "...", "steps": [...]}

Polyline

The polyline field in the route response is an encoded polyline. Use it with MapLibre, Leaflet, or Google Maps to draw the route on a map.

// MapLibre example
import { decode } from '@mapbox/polyline';
const coordinates = decode(routeResponse.polyline);
// Add to map as GeoJSON LineString

Distance Matrix

POST /v1/matrix

ETA and distance matrix for driver dispatch (many-to-many).

curl -X POST -H "Authorization: Bearer YOUR_API_KEY" -H "Content-Type: application/json" \
  -d '{"origins":[[23.81,90.41]],"destinations":[[23.75,90.37],[23.70,90.35]],"vehicle_type":"car"}' \
  "https://map.arohon.co/v1/matrix"

Map Matching

POST /v1/match

Snap GPS traces to the road network.

curl -X POST -H "Authorization: Bearer YOUR_API_KEY" -H "Content-Type: application/json" \
  -d '{"gps_points":[[23.81,90.41],[23.80,90.40]],"vehicle_type":"car"}' \
  "https://map.arohon.co/v1/match"

Isochrone

GET /v1/isochrone

Reachable area within a time limit (drive-time polygon).

Params: origin=lat,lng   time_limit=15   vehicle_type=car

curl -H "Authorization: Bearer YOUR_API_KEY" \
  "https://map.arohon.co/v1/isochrone?origin=23.81,90.41&time_limit=15&vehicle_type=car"

Geocoding

GET /v1/search

Forward geocoding — search for places by name.

curl -H "Authorization: Bearer YOUR_API_KEY" \
  "https://map.arohon.co/v1/search?q=Dhaka&size=10"
GET /v1/reverse

Reverse geocoding — get address from coordinates.

curl -H "Authorization: Bearer YOUR_API_KEY" \
  "https://map.arohon.co/v1/reverse?lat=23.81&lng=90.41"
GET /v1/autocomplete

Address autocomplete.

curl -H "Authorization: Bearer YOUR_API_KEY" \
  "https://map.arohon.co/v1/autocomplete?q=banani&size=5"

Map Tiles

GET /tiles/{z}/{x}/{y}

Vector tiles (MapLibre / Mapbox compatible). Use in your map style.

// MapLibre style
"arohon": {
  "type": "vector",
  "tiles": ["https://map.arohon.co/tiles/{z}/{x}/{y}"],
  "minzoom": 0,
  "maxzoom": 14
}

Health (no auth)

GET /health

Service health check.

curl "https://map.arohon.co/health"