Geo Engine Docs

Map tile providers

Maps API

Browse open-source styles and configure authenticated paid map tiles for private consuming apps.

Maps API

The Maps API provides a small catalog of styles and an authenticated tile proxy for paid providers. The Geo Engine API key for a provider stays on the server. Browser clients should call a trusted BFF that attaches x-app-id and x-api-key to each Geo Engine request.

OpenFreeMap styles are available without a provider key. The OpenStreetMap Standard fallback is also keyless, with usage governed by the OSM tile policy. Geoapify styles use the existing server-side GEOAPIFY_API_KEY. The web documentation site allows Geoapify tile previews in local development. Its production site lists the paid styles for documentation and rejects tile preview requests. Private consuming apps can proxy the authenticated tile endpoint from their own backend.

Available styles

GET /maps/styles returns entries with id, label, provider, usageType, availability, and a renderer descriptor. Current usage types are open-source and paid. Self-hosted map tiles are planned.

Method and route Purpose
GET /maps/styles List renderer styles and provider availability
GET /maps/styles/:styleId/tiles/:z/:x/:y.png Return a paid provider PNG tile

Styles with availability: "requires-api-key" need a valid GEOAPIFY_API_KEY in the Geo Engine server environment. The catalog never returns the key. Existing .env.example already has the setting. Replace its placeholder in the server’s .env or deployment environment.

The catalog request does not fetch map tiles. An app only incurs provider tile usage when a client requests a paid style’s tile URLs.

The reusable viewer package exports createMapStylesClient(baseUrl). It converts the catalog renderer descriptors into MapLibre style objects. The consuming app’s BFF must proxy both the catalog and tile paths and attach Geo Engine app credentials server-side.

import { useEffect, useMemo, useState } from 'react';
import {
  createMapStylesClient,
  createMapViewerClient,
  MapViewer,
  type MapStyleOption,
} from '@/components/customs/map-viewer';

export function LocationMap() {
  const geocodingClient = useMemo(() => createMapViewerClient('/api/geo'), []);
  const stylesClient = useMemo(() => createMapStylesClient('/api/geo'), []);
  const [mapStyles, setMapStyles] = useState<MapStyleOption[]>();

  useEffect(() => {
    void stylesClient.list().then(setMapStyles);
  }, [stylesClient]);

  return <MapViewer client={geocodingClient} mapStyles={mapStyles} />;
}

List styles

curl --get 'http://localhost:8000/maps/styles' \
  --header 'x-app-id: <your-app-slug>' \
  --header 'x-api-key: <credential-id>.<secret>'

Fetch a paid tile

The Geo Engine validates the style ID and XYZ tile coordinates, then returns a PNG from Geoapify. Provider credentials are added by the server.

curl --get 'http://localhost:8000/maps/styles/geoapify-osm-liberty/tiles/12/2200/1343.png' \
  --header 'x-app-id: <your-app-slug>' \
  --header 'x-api-key: <credential-id>.<secret>' \
  --output geoapify-liberty.png

Use geoapify-osm-bright for the OSM Bright style. Tile zoom is limited to 0 through 20, and x/y must be valid for the requested zoom. The default limits are 60 catalog requests and 120 tile requests per consuming app per rolling minute. The limits use the Geo Engine’s existing in-memory limiter.

Errors

The API returns a readable JSON error for a missing or rejected provider key, invalid coordinates, an unknown style, provider quota exhaustion, provider timeouts, or an invalid provider response. These map to 503, 400, 404, 429, 504, and 502 respectively. Geo Engine’s own per-app tile limit also returns 429 with Retry-After.

Attribution and provider references

MapLibre displays the attribution included with each style. Geoapify raster maps must credit OpenStreetMap, OpenMapTiles where required by the style, and Geoapify on the free plan. Geoapify’s current map style URLs and tile formats are in its Maps API reference. OpenFreeMap documents its keyless public styles. The OpenStreetMap Standard tile server has a separate usage policy.