Vector Tiles API
High-performance vector tiles for interactive maps
Overview
Lightweight, scalable vector tiles in Mapbox Vector Tile (MVT) format
Lightning Fast
Sub-50ms response times globally
PMTiles Format
Optimized for web delivery
Multiple Stack
Roads, buildings, POIs, and more
Tile URL Template
Use this URL pattern with your mapping library
https://tiles.geog.dev/{z}/{x}/{y}.mvtReplace {z}, {x}, {y} with zoom level and tile coordinates, or use directly with mapping libraries.
Authentication
Include your API key as a query parameter or header
Query Parameter (Recommended)
https://tiles.geog.dev/{z}/{x}/{y}.mvt?key=your-api-keyHeader
X-API-Key: your-api-key-hereUsage Examples
Mapbox GL JS
Add geog tiles to Mapbox GL JS maps
map.addSource('geog', {
type: 'vector',
tiles: ['https://tiles.geog.dev/{z}/{x}/{y}.mvt?key=your-api-key'],
minzoom: 0,
maxzoom: 14
});
map.addLayer({
id: 'roads',
source: 'geog',
'source-layer': 'roads',
type: 'line',
paint: {
'line-color': '#666',
'line-width': 2
}
});Leaflet with MapLibre
Use with MapLibre GL JS plugin for Leaflet
const map = L.map('map').setView([37.7749, -122.4194], 13);
L.maplibreGL({
style: {
version: 8,
sources: {
'geog': {
type: 'vector',
tiles: ['https://tiles.geog.dev/{z}/{x}/{y}.mvt?key=your-api-key']
}
},
layers: [
{
id: 'background',
type: 'background',
paint: { 'background-color': '#f8f9fa' }
},
{
id: 'roads',
source: 'geog',
'source-layer': 'roads',
type: 'line',
paint: { 'line-color': '#666', 'line-width': 2 }
}
]
}
}).addTo(map);OpenStack
Vector tiles with OpenStack
import VectorTileLayer from 'ol/layer/VectorTile';
import VectorTileSource from 'ol/source/VectorTile';
import MVT from 'ol/format/MVT';
const vectorTileLayer = new VectorTileLayer({
source: new VectorTileSource({
format: new MVT(),
url: 'https://tiles.geog.dev/{z}/{x}/{y}.mvt?key=your-api-key'
})
});
map.addLayer(vectorTileLayer);Available Stack
Vector tile layers included in each tile
Transportation
roads- Streets and highwaysrailways- Train and subway linespaths- Walking and cycling paths
Buildings & Places
buildings- Building footprintspois- Points of interestlabels- Place names and labels
Natural Features
water- Rivers, lakes, oceanslandcover- Parks, forests, land useboundaries- Administrative boundaries
Metadata
addresses- Address pointspostal- Postal code areastimezone- Timezone boundaries
Pricing
Simple, transparent pricing for vector tiles
Free Tier
- • 10,000 tile requests/month
- • No credit card required
- • All layers included
Pay-as-you-go
- • $0.0005 per tile request
- • No monthly minimum
- • Global CDN delivery