Maps
1 API call in this section.
Backend map utilities. Static map previews proxy Google Static Maps through the backend so mobile clients do not receive the Google Maps provider key.
Static Route Preview Map
/maps/static-previewReturns a Google Static Maps raster image for route preview backgrounds.
Business rules
Requires normal backend authentication.
Uses the existing
google_maps_serverprovider configuration throughMapProviderManager.Does not return the Google Static Maps URL or provider key to the client.
Forces
maptype=roadmap.Forces Google map styles
feature:poi|visibility:offandfeature:transit|visibility:off.Sends only map-rendering query data to Google: center, zoom, size, scale, map type, and fixed styles.
Frontend integration contract
Use this URL as the React Native image source URI instead of constructing
https://maps.googleapis.com/maps/api/staticmapon mobile.Pass
Authorization: Bearer <access_token>with the image request.Keep existing overlay marker and route-line rendering unchanged because this endpoint returns only the background raster map image.
Query parameters
| Parameter | Type | Description |
|---|---|---|
center_latRequired | string | Required. Map center latitude. Must be between -90 and 90. Example: |
center_lngRequired | string | Required. Map center longitude. Must be between -180 and 180. Example: |
zoomOptional | string | Optional. Rounded and clamped to 1..21. Defaults to 13. Example: |
widthRequired | string | Required. Logical image width in pixels. Rounded and clamped to 1..640. Example: |
heightRequired | string | Required. Logical image height in pixels. Rounded and clamped to 1..640. Example: |
scaleOptional | string | Optional. Rounded and clamped to 1..2. Defaults to 2. Example: |
Headers
| Parameter | Type | Description |
|---|---|---|
Authorization | string | Example: |
1curl --globoff --request GET "https://staging-api.ondi.io/functions/v1/maps/static-preview?center_lat=35.123¢er_lng=44.123&zoom=13&width=390&height=168&scale=2" \2 --header "Authorization: Bearer ${ONDI_ACCESS_TOKEN}"Response examples
This response has no body.