TomTom Maps for JavaScript
    Preparing search index...

    Type Alias GeometrySearchResponse

    GeometrySearchResponse: Places<
        SearchPlaceProps,
        GeometrySearchFeatureCollectionProps,
    >

    Response from a geometry search query.

    Contains places found within or along a specified geometry (polygon or circle), along with summary information about the search results.

    Use Cases:

    • Find POIs within a delivery zone
    • Search along a route corridor
    • Discover places within a custom boundary
    • Find facilities within a service area
    • Search within administrative boundaries

    Supported Geometries:

    • Polygon: Search within a multi-sided boundary
    • Circle: Search within a radius around a point
    const response: GeometrySearchResponse = {
    type: 'FeatureCollection',
    features: [
    {
    type: 'Feature',
    geometry: { type: 'Point', coordinates: [4.9, 52.3] },
    properties: {
    type: 'POI',
    poi: { name: 'Restaurant', categories: ['RESTAURANT'] },
    address: { streetName: 'Main Street' },
    score: 0.95
    }
    }
    ],
    summary: {
    numResults: 1,
    query: 'restaurant',
    queryTime: 45
    }
    };