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
/tilesAuthentication
Include your token in the request header:
X-Authorization-Token: your_token
Parameters
| Name | Type | Description |
|---|---|---|
| latitude | number | Center latitude |
| longitude | number | Center longitude |
| zoom | number | Zoom level (0-18) |
| style | string | Map 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
});
