TomTom Maps for JavaScript
    Preparing search index...

    Type Alias Place<P>

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

    GeoJSON Feature representing a place.

    A place is a Point feature with comprehensive location information including address, coordinates, and metadata.

    Type Parameters

    Type Declaration

    • Optionalbbox?: BBox

      Bounding box that contains the place.

      • Typically significant for places covering wider areas.
    • id: string

      Unique identifier for this place.

      Required string ID (stricter than GeoJSON Feature's optional id).

    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
    }
    };