This is the documentation of version 1.0.0-rc.3. Go to the latest version, 1.0.0-rc.5.
TomTom Maps for JavaScript
    Preparing search index...

    Type Alias GeometryDataParams

    GeometryDataParams: CommonServiceParamsWithZoom & {
        geometries: GeometriesInput;
    }

    Parameters for fetching geometry data by IDs.

    Type Declaration

    • geometries: GeometriesInput

      Array of geometry IDs to fetch.

      Pass from 1 to 20 geometry IDs per request.

      You get IDs from place data sources, typically from search results that include dataSources.geometry.id.

      // Single geometry
      geometries: ['g1234567890']

      // Multiple geometries
      geometries: ['g1234567890', 'g0987654321', 'g1122334455']

    Use this when you have geometry IDs from previous API calls and want to fetch the actual polygon/multipolygon coordinates.

    // Fetch geometries by ID
    const params: GeometryDataParams = {
    geometries: ['g1234567890', 'g0987654321'],
    zoom: 12
    };