Retrieve a resort area map

  • Product Information
  • Resort content
  • 1 route
How can I retrieve the area map data for a resort?

Use this scenario to retrieve the geometric data required to display a resort area map. It is useful when you need to build an interactive map, highlight major resort zones, or position navigation markers in a frontend experience.

The route returns GeoJSON structures and area metadata that can be consumed directly by mapping components or transformed into a simplified resort map layer.

Overview

This scenario explains how to retrieve the area-level map data of a resort. The response combines GeoJSON collections and area metadata so you can render resort zones, compute map centers, or enrich a navigation experience with structured location data.

Prerequisites

  • A valid product_id for the resort
  • A valid x-api-key
  • An accept-language header matching one of the supported locales

Expected result

At the end of this scenario, you can feed a map component with the resort's area geometry and display clickable or labeled zones in a public-facing experience.

1

Retrieve area map data

Mandatory

This route returns the area map data for a resort. It provides both GeoJSON geometry and the metadata required to display the main resort zones on a map.

Prerequisites

  • A valid product_id, for example MPAC
  • A valid x-api-key
  • An accept-language header, for example en-US

Calling CURL

curl -X GET \
  -H "x-api-key: YOUR_API_KEY" \
  -H "accept-language: en-US" \
  "https://api.clubmed.com/v0/products/MPAC/areas/geo_data"

Example answer

{
  "areas_geo_json": {
    "type": "FeatureCollection",
    "features": [
      {
        "type": "Feature",
        "properties": {
          "area_id": "DA"
        },
        "geometry": {
          "type": "Polygon",
          "coordinates": [[[ -7.978791 ]]]
        }
      }
    ]
  },
  "areas_center_geo_json": {
    "type": "FeatureCollection",
    "features": [
      {
        "type": "Feature",
        "properties": {
          "area_id": "DA"
        },
        "geometry": {
          "type": "Point",
          "coordinates": [ -7.978791 ]
        }
      }
    ]
  },
  "areas": [
    {
      "id": "AREA_MPAC_4T",
      "label": "Main Resort Area",
      "product_id": "MPAC",
      "pickable": true
    }
  ]
}

info: The GeoJSON fields can be injected directly into a mapping component. The areas collection adds business labels and identifiers for each zone so you can manage frontend interactions.


Response codes

  • 200 OK: the resort map data is returned
  • 400 Bad Request: a required parameter is missing or invalid
  • 404 Not Found: the product_id does not match any known resort
GET/v0/products/{product_id}/areas/geo_data
See more