Skip to content

Maps

Maps describe published destinations and the content that belongs to them. Set BASE_URL as shown in the API overview before running these examples.

GET /maps/:map_id

Returns a map and the requested related sections. Each section flag is passed as a string; use true to request it.

ParameterInRequiredDescription
map_idPathYesMap UUID.
infoQueryNoInclude map information.
all_categoriesQueryNoInclude all categories.
categoriesQueryNoInclude categories.
markersQueryNoInclude markers.
pathsQueryNoInclude paths.
polygonsQueryNoInclude polygons.
publisherQueryNoInclude publisher data.
map_dataQueryNoInclude map data.
contactQueryNoInclude contact data.
map_sponsorsQueryNoInclude map sponsors.
version_idQueryNoReturn content from this map-version UUID.
tag_countsQueryNoInclude tag counts.
contentsQueryNoInclude map content blocks.
Terminal window
curl --get "$BASE_URL/maps/11111111-1111-4111-8111-111111111111" \
--data-urlencode "info=true" \
--data-urlencode "categories=true" \
--data-urlencode "publisher=true"

GET /maps/:map_id/details

Returns identity and presentation details for one map. This endpoint can also return the limited identity and branding needed to represent a disabled map.

ParameterInRequiredDescription
map_idPathYesMap UUID.
Terminal window
curl "$BASE_URL/maps/11111111-1111-4111-8111-111111111111/details"

GET /maps/:map_id/contents

Returns the content blocks associated with a map.

ParameterInRequiredDescription
map_idPathYesMap UUID.
Terminal window
curl "$BASE_URL/maps/11111111-1111-4111-8111-111111111111/contents"

Publishers are the destination organizations that maintain maps and their content.

GET /publisher/:publisher_id

Returns one publisher by ID.

ParameterInRequiredDescription
publisher_idPathYesPublisher UUID.
Terminal window
curl "$BASE_URL/publisher/33333333-3333-4333-8333-333333333333"

GET /publisher/:publisher_id/maps

Returns the published maps maintained by one publisher. You can provide a coordinate to order them by proximity.

ParameterInRequiredDescription
publisher_idPathYesPublisher UUID.
lngQueryNoLongitude used with lat.
latQueryNoLatitude used with lng.
Terminal window
curl --get "$BASE_URL/publisher/33333333-3333-4333-8333-333333333333/maps" \
--data-urlencode "lat=40.7128" \
--data-urlencode "lng=-74.0060"