Maps SDK for Web
tt.services.evChargingStationsAvailability
Get the charging connector data consisting of type and numbers of the existing charging stations, based on EV station ID retrieved from a FuzzySearch request called with connectorSet parameter.
Parameters need to be passed to the constructor. The method go performs the actual call.
Constructor
tt.services.evChargingStationsAvailability([options])
Example
function callbackFn(results) {
console.log(results);
}
tt.services.fuzzySearch({
key: <Your API key>,
query: 'station',
connectorSet: 'Tesla'
})
.go()
.then(function(response) {
var chargingStationID = response.results[0].dataSources.chargingAvailability.id;
tt.services.evChargingStationsAvailability({
key: <Your API key>,
chargingAvailability: chargingStationID
})
.go()
.then(callbackFn)
});
Parameters
Name | Description |
---|---|
options
Object default:None |
|
options.chargingAvailability
String default:None |
A valid ID of EV charging station. |
options.key
String default:None |
A valid API Key for the requested service. A valid API Key is required to make use of the given service. It can be issued in the Developer Portal. |