TomTom Maps for JavaScript
    Preparing search index...

    Type Alias ChargingStationsAvailability

    Real-time availability information for EV charging stations.

    Provides comprehensive status information including individual charging points, aggregated availability by connector type, and access information.

    This data is typically retrieved from the EV Charging Stations Availability service and provides real-time operational status. Use this to:

    • Display available charging points on a map
    • Filter by connector type and status
    • Show aggregated availability statistics
    • Check if a station is accessible and open
    const availability: ChargingStationsAvailability = {
    id: 'charging-park-123',
    chargingStations: [...], // Individual stations with detailed status
    chargingPointAvailability: {
    count: 10,
    statusCounts: { Available: 7, Occupied: 3 }
    },
    connectorAvailabilities: [
    { connector: { type: 'IEC62196Type2CCS', ratedPowerKW: 150, ... }, count: 4, ... },
    { connector: { type: 'Chademo', ratedPowerKW: 50, ... }, count: 2, ... }
    ],
    accessType: 'Public',
    openingHours: { mode: 'nextSevenDays', ... }
    };
    Index

    Properties

    Access level for these charging stations.

    Indicates if stations are public, require authorization, or have restrictions.

    chargingPointAvailability: ChargingPointAvailability

    Aggregated availability counts across all charging points.

    Provides a quick summary of total charging points and their statuses. Useful for displaying overall availability without iterating through individual stations and points.

    // Display: "7 of 10 chargers available"
    const total = chargingPointAvailability.count;
    const available = chargingPointAvailability.statusCounts.Available || 0;
    chargingStations: ChargingStation[]

    Array of charging stations with detailed point-level status.

    Each station contains individual charging points with real-time status, capabilities, and connector information. Use this for detailed views showing the status of each charging point.

    connectorAvailabilities: ConnectorAvailability[]

    Availability grouped by connector type and power level.

    Useful for displaying connector-specific availability, allowing users to quickly see if their required connector type is available.

    // Find availability for CCS Type 2 connectors
    const ccsAvailability = connectorAvailabilities.find(
    ca => ca.connector.type === 'IEC62196Type2CCS'
    );
    id: string

    Unique identifier for the charging park or facility.

    Matches the ID used to request availability information.

    openingHours?: OpeningHours

    Operating hours for the charging facility.

    Indicates when the charging park is accessible. Note that even if chargers are available 24/7, the facility itself may have restricted access hours.