Web Development
JavaScript Integration
The Arohon Map API works with any HTTP client. Use fetch, axios, or MapLibre GL JS for maps.
Quick Start
const res = await fetch(
'https://map.arohon.co/v1/route?origin=23.81,90.41&destination=23.75,90.37&vehicle_type=car',
{ headers: { 'Authorization': 'Bearer YOUR_API_KEY' } }
);
const route = await res.json();
MapLibre
MapLibre GL JS v4.x is recommended for displaying maps. See Maps Integration for setup.
CORS
The API supports CORS for browser requests. Use your API key in the Authorization header.