Get Started
What you need
- API Key: Sign up at map.arohon.co to get your key. All requests require
Authorization: Bearer YOUR_API_KEY - MapLibre GL JS: v4.x recommended for maps (e.g.
maplibre-gl@4.7.1) - Coordinates: Use
lat,lngfor API params (e.g.origin=23.81,90.41)
Base URL
https://map.arohon.co
Authentication
All API requests (except /health) require the Bearer token header:
Authorization: Bearer YOUR_API_KEY
Polyline Format
Route polylines use Valhalla polyline6 (6 decimal precision). Use factor 1e6 when decoding:
function decodePolyline(str) {
const factor = 1e6;
const coords = [];
let i = 0, lat = 0, lng = 0;
while (i < str.length) {
let b, shift = 0, result = 0;
do { b = str.charCodeAt(i++) - 63; result |= (b & 0x1f) << shift; shift += 5; } while (b >= 0x20);
const dlat = (result & 1) ? ~(result >> 1) : (result >> 1);
result = 0; shift = 0;
do { b = str.charCodeAt(i++) - 63; result |= (b & 0x1f) << shift; shift += 5; } while (b >= 0x20);
const dlng = (result & 1) ? ~(result >> 1) : (result >> 1);
lat += dlat; lng += dlng;
coords.push([lng / factor, lat / factor]);
}
return coords;
}
Rate Limits
| Plan | Requests/sec | Monthly Quota |
|---|---|---|
| Free | 10 | 10,000 |
| Pro | 50 | 500,000 |
| Enterprise | 100 | Unlimited |
Next Steps
- Route API: Calculate routes between points
- Maps Integration: Add maps to your app
- Quick Start Example: Copy paste working code