TomTom Maps for JavaScript
    Preparing search index...

    Type Alias RelatedPOI

    Reference to a related Point of Interest.

    Represents a parent-child relationship between POIs, 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

    Properties

    Properties

    id: string

    Unique identifier for the related POI.

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

    relationType: "child" | "parent"

    Type of relationship between this POI and the referenced POI.

    • 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)