Skip to content
getgeolens.com

Get Map Defaults

GET
/settings/map-defaults/
curl --request GET \
--url https://example.com/settings/map-defaults/

Return the default map center and zoom (public, no auth required).

Successful Response

Media type application/json
MapDefaultsResponse
object
center_lat
required
Center Lat

Currently configured initial center latitude.

number
>= -90 <= 90
center_lng
required
Center Lng

Currently configured initial center longitude.

number
>= -180 <= 180
zoom
required
Zoom

Currently configured initial zoom level.

number
<= 22
Example generated
{
"center_lat": 1,
"center_lng": 1,
"zoom": 1
}

Too many requests — retry after the advertised interval

Media type application/problem+json
ProblemDetail
object
detail
required
Any of:
string
status
required
Status
integer
title
required
Title
string
type
Type
string
default: about:blank
Example
{
"detail": "Dataset not found",
"status": 404,
"title": "Not Found",
"type": "about:blank"
}
Retry-After
integer

Seconds until the request may be retried

Internal server error

Media type application/problem+json
ProblemDetail
object
detail
required
Any of:
string
status
required
Status
integer
title
required
Title
string
type
Type
string
default: about:blank
Example
{
"detail": "Dataset not found",
"status": 404,
"title": "Not Found",
"type": "about:blank"
}

Service unavailable — the database could not serve the request

Media type application/problem+json
ProblemDetail
object
detail
required
Any of:
string
status
required
Status
integer
title
required
Title
string
type
Type
string
default: about:blank
Example
{
"detail": "Dataset not found",
"status": 404,
"title": "Not Found",
"type": "about:blank"
}