TomTom Maps for JavaScript
    Preparing search index...

    Type Alias PlaceDataSources

    Data sources for fetching additional place information.

    Provides IDs that can be used with various services to retrieve detailed or real-time information about a place.

    This object acts as a navigation aid, telling you which additional data is available for a place and providing the IDs needed to fetch it.

    const dataSources: PlaceDataSources = {
    chargingAvailability: { id: 'charging-123' },
    geometry: { id: 'geom-456' },
    poiDetails: { id: 'poi-789', sourceName: 'TomTom' }
    };
    Index

    Properties

    chargingAvailability?: ChargingAvailabilityDataSource

    Data source for EV charging station availability.

    Present only for places that are EV charging stations (type === POI). Use the ID to fetch real-time availability from the EV Charging Stations Availability service.

    Data source for geometric shape information.

    Present for places with geometric representations (type === Geography or POI). Use the ID to fetch boundary polygons from the Geometry Data service.

    Useful for:

    • Displaying administrative boundaries
    • Showing building footprints
    • Visualizing area coverage

    Data source for detailed POI information.

    Present only for POI places (type === POI). Use the ID to fetch extended details from the Points of Interest Details service.