Get public map with markers
const url = 'https://api.wink.travel/api/public/d5b8a3c2-9e6f-4a1b-8d34-7c2e1f0a5b69/map/f8a3d7e1-2b6c-4f9a-8c15-3e7d1a9c5b42/markers';const options = { method: 'GET', headers: {'Wink-Version': '2.0', Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.wink.travel/api/public/d5b8a3c2-9e6f-4a1b-8d34-7c2e1f0a5b69/map/f8a3d7e1-2b6c-4f9a-8c15-3e7d1a9c5b42/markers \ --header 'Authorization: Bearer <token>' \ --header 'Wink-Version: 2.0'Load the publicly-accessible map configuration and all its markers for consumer display.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”UUID of the managing entity that owns the map.
Example
d5b8a3c2-9e6f-4a1b-8d34-7c2e1f0a5b69UUID of the map to display.
Example
f8a3d7e1-2b6c-4f9a-8c15-3e7d1a9c5b42Header Parameters
Section titled “Header Parameters ”Responses
Section titled “ Responses ”OK
Complete map configuration with markers for public consumption
object
The map configuration and styling
object
Unique identifier of this map (assigned by server)
UUID of the managing entity that owns this map
UUID of the customization context (e.g., Wink Links, channel manager)
Display name for this map
UUID of the inventory source: single channel inventory, curated list, or dynamic search
Category of inventory being displayed (SINGLE, LIST, or SEARCH)
GeoJSON point defining map center (longitude, latitude)
object
Allow users to pan the map by dragging
Allow users to zoom in and out
Initial zoom level (0-21, where 0 shows the entire world)
Map visual style (normal, clean, or bluish)
Hexadecimal color code for map markers
Height of the embedded map in pixels
Which data to display initially (NATIVE, MODIFIED, or AFFILIATE)
Optional circular overlay regions on the map
object
Circle radius from center
Circle center point
object
Optional rectangular overlay regions on the map
object
A GeoJSON rectangle
object
A GeoJSON rectangle
object
A GeoJSON rectangle
object
Optional custom markers to display on the map
object
A GeoJSON point
object
Optional polygonal overlay regions on the map
object
A GeoJSON polygon
object
object
object
object
Inventory items displayed as markers on the map
object
Unique identifier of the channel inventory or list item represented by this marker
Geographic location coordinates as a GeoJSON Point (longitude, latitude)
object
UUID of the supplier (hotel or property) owning this inventory
Display name of the supplier property
UUID of the specific inventory item (e.g., room type or add-on)
Classification of the inventory (e.g., GUEST_ROOM, ADD_ON, RESTAURANT, ACTIVITY)
Human-friendly name of the inventory item
Lowest available price for this inventory in the user’s requested currency
object
Example
nullBad Request
object
object
Example generated
{ "type": "https://example.com", "title": "example", "status": 1, "detail": "example", "instance": "https://example.com", "properties": { "additionalProperty": "example" }}object
object
object
object
object
object
object
object
Unauthorized
object
object
Forbidden
object
object
Internal Server Error
object
Example generated
{}