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

    Type Alias RelatedPOI

    A reference to a related Point of Interest, in a parent-child relationship such as:

    • A restaurant inside a shopping mall
    • A store within an airport terminal
    • A department within a larger facility
    const relatedPOI: RelatedPOI = {
    relationType: 'parent', // This POI is inside a larger complex
    id: 'abc123def456' // ID to fetch parent POI details
    };
    type RelatedPOI = {
        id: string;
        relationType: "child" | "parent";
    }
    Index
    id: string

    The unique identifier of the related POI.

    Pass it to the Place by ID service to fetch detailed information about the related location.

    relationType: "child" | "parent"

    How this POI relates to the referenced one.

    • child: The referenced POI is contained within this POI (e.g., a store in this mall)
    • parent: This POI is contained within the referenced POI (e.g., this store is inside a mall)