Map + Markers
const url = 'https://api.wink.travel/api/public//map/example/markers';const options = {method: 'GET', headers: {'Wink-Version': '2.0'}};
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//map/example/markers \ --header 'Wink-Version: 2.0'Load map and map markers for a configurable map.
Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”Managing entity identifier
Header Parameters
Section titled “Header Parameters ”Responses
Section titled “ Responses ”OK
object
object
Map identifier
Map owner identifier
Customization identifier
Name of map
Inventory type identifier. Either a single channel inventory identifier, a list identifier or a dynamic search identifier.
Type of blocking
Map center point
object
User can move around / pan the map
User can zoom in/out of the map
Valid Google maps zoom level
Map style
Map marker color
Map height in pixels
Indicate which initial values to display first on the front-facing card
A way to persist a GeoJSON circle
object
Circle radius from center
Circle center point
object
Custom-defined rectangles
object
A GeoJSON rectangle
object
A GeoJSON rectangle
object
A GeoJSON rectangle
object
Custom-defined markers
object
A GeoJSON point
object
Custom-defined polygons
object
A GeoJSON polygon
object
object
object
object
Inventory map marker
object
Identifier of the list, channel inventory or search
Location of inventory
object
Hotel identifier
Hotel name
Actual inventory identifier
Type of inventory
Name of inventory
Lowest price of inventory in desired currency
object
Example
{ "map": { "identifier": "", "ownerIdentifier": "", "customizationIdentifier": "", "name": "", "typeIdentifier": "", "type": "SINGLE", "center": "", "draggable": true, "zoomable": true, "initialZoomLevel": "", "mapStyle": "normal", "mapMarkerColor": "cc2138", "mapHeight": "", "displayType": "NATIVE", "circles": [ null ], "rectangles": [ "" ], "markers": [ "" ], "polygons": [ "" ] }, "markers": [ null ]}Bad 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
{}