Enterprise Secure Login


API Documentation

Integration guides and endpoints for Maps and Routing services.

Map Integration: Raster & Vector Tiles

Use your API key to integrate maps in web apps.

Raster Tile (PNG)

GET /api/v1/tiles/{z}/{x}/{y}.png?api_key=xxx

📍 Kathmandu (z=14): x=8032, y=5980
Find your tile XYZ
Vector Tile (PBF)

GET /api/v1/tiles/{z}/{x}/{y}.pbf?api_key=xxx

✅ Use `.pbf` for MapLibre/Mapbox GL
📦 Smaller size, dynamic styling, higher zoom (overzooming enabled)
MapLibre GL JS (Vector with Overzooming)
<link href='https://unpkg.com/maplibre-gl@3.6.1/dist/maplibre-gl.css' rel='stylesheet' />
<script src='https://unpkg.com/maplibre-gl@3.6.1/dist/maplibre-gl.js'></script>

<div id="map" style="width:100%; height:400px;"></div>

<script>
const map = new maplibregl.Map({
  container: 'map',
  style: 'https://tiles.vertexflux.com/api/v1/tiles/styles/osm-liberty.json?api_key=',
  center: [85.3240, 27.7172], // Kathmandu
  zoom: 12,
  maxZoom: 22 // Enable deep zoom (frontend overzooming)
});
</script>
Leaflet.js Integration
L.tileLayer('https://tiles.vertexflux.com/api/v1/tiles/{z}/{x}/{y}.png?api_key=', {
    maxZoom: 22,
    maxNativeZoom: 14, // Stretch tiles after Z14
    attribution: '© OpenStreetMap contributors | VertexFlux'
}).addTo(map);
curl Example
curl -o kathmandu.png "https://tiles.vertexflux.com/api/v1/tiles/14/8032/5980.png?api_key="

Quick Start: Call Our OSRM API

Use your API key to get routes instantly.

Car Routing

GET /api/v1/car/route/v1/driving/{lon},{lat};{lon},{lat}

curl:
curl "https://osrm.vertexflux.com/api/v1/car/route/v1/driving/85.3240,27.7172;85.3460,27.6780?overview=simplified&steps=true&geometries=geojson&api_key="
Bike Routing

GET /api/v1/bike/route/v1/cycling/{lon},{lat};{lon},{lat}

curl:
curl "https://osrm.vertexflux.com/api/v1/bike/route/v1/cycling/85.3120,27.7140;85.2960,27.7080?steps=true&geometries=polyline&api_key="
Tips
  • 📍 Coordinates: longitude,latitude (e.g., 85.3240,27.7172)
  • ➡️ Multiple points: separate with ;
  • 🔧 Common params: overview=(false, simplified, full), steps=true, geometries=geojson
  • 📚 Full docs: OSRM HTTP API

Geocoding & Search

Convert addresses to coordinates and vice versa.

Reverse Geocoding

GET /api/v1/geo/reverse?lat={lat}&lon={lon}&api_key=xxx

curl:
curl "https://tiles.vertexflux.com/api/v1/geo/reverse?lat=27.7172&lon=85.3240&format=json&zoom=18&addressdetails=1&api_key="
Search Nearby

GET /api/v1/geo/search?lat={lat}&lon={lon}&viewbox={bbox}&bounded=1&api_key=xxx

curl:
curl "https://tiles.vertexflux.com/api/v1/geo/search?lat=27.7172&lon=85.3240&viewbox=85.22,27.62,85.42,27.82&bounded=1&limit=10&api_key="
Tips
  • 📍 Forward Search: Use q for the query string. Add countrycodes (e.g., np) to speed up results.
  • 🎯 Reverse Search: Requires lat and lon. Use zoom to control detail level (0-18).
  • 📦 Search Nearby: Use bounded=1 with a viewbox (left,bottom,right,top) to restrict results to a specific rectangle area.