Map Tiles API

Render interactive maps using high-performance vector tiles. Supports multiple styles and zoom levels for web and mobile applications.

Try in Playground →

Endpoint

GET/tiles

Authentication

Include your token in the request header:

X-Authorization-Token: your_token

Parameters

NameTypeDescription
latitudenumberCenter latitude
longitudenumberCenter longitude
zoomnumberZoom level (0-18)
stylestringMap style: light or dark (default: light)

Code Examples

curl "https://apihub.latlong.ai/tiles?latitude=VALUE&longitude=VALUE&zoom=VALUE" \
  -H "X-Authorization-Token: YOUR_TOKEN"

Example Response

JSON
{
  "status": "success",
  "tile_url": "https://tiles-v2.latlong.in/blue_essence.json",
  "style": "light",
  "zoom": 15
}

Integration

Use the tile style URL with MapLibre GL JS for interactive maps:

JavaScript
const map = new maplibregl.Map({
  container: 'map',
  style: 'https://tiles-v2.latlong.in/blue_essence.json',
  center: [77.59, 12.97],
  zoom: 12
});