Bangladesh Navigation Map API — Routing, Geocoding & Vector Tiles
Authorization: Bearer YOUR_API_KEY
https://map.arohon.co
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": [...]}
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
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"
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"
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"
Forward geocoding — search for places by name.
curl -H "Authorization: Bearer YOUR_API_KEY" \ "https://map.arohon.co/v1/search?q=Dhaka&size=10"
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"
Address autocomplete.
curl -H "Authorization: Bearer YOUR_API_KEY" \ "https://map.arohon.co/v1/autocomplete?q=banani&size=5"
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
}
Service health check.
curl "https://map.arohon.co/health"