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 Place<P>

    Place: Omit<Feature<Point, P>, "id" | "bbox"> & { bbox?: BBox; id: string }

    A place, as a GeoJSON Point feature with its address, coordinates and metadata.

    Type Parameters

    Type Declaration

    • Optionalbbox?: BBox

      The bounding box of the place.

      It typically matters for places covering wider areas.

    • id: string

      The unique identifier of this place.

      Unlike the optional id of a GeoJSON Feature, it is a required string.

    const place: Place<SearchPlaceProps> = {
    type: 'Feature',
    id: 'place-123',
    geometry: { type: 'Point', coordinates: [4.9041, 52.3676] },
    properties: {
    type: 'POI',
    address: { freeformAddress: 'Dam, Amsterdam', ... },
    poi: { name: 'Dam Square', ... },
    score: 0.95
    }
    };