Examples CHARGING

Questions refering to the Optiflow based API within PTV Developer (launched on 20.12.2023)
Post Reply
User avatar
Bernd Welter
Site Admin
Posts: 2958
Joined: Mon Apr 14, 2014 10:28 am
Contact:

Examples CHARGING

Post by Bernd Welter »

Here are some sample screenshots showing the new feature "charging electric vehicles":
Homogeneous fleet: all vehicles show same charging characteristics. Of course you can specify individual characteristics per vehicle and also merge EV with non-EVs.
Homogeneous fleet: all vehicles show same charging characteristics. Of course you can specify individual characteristics per vehicle and also merge EV with non-EVs.
Same applies for the charging stations at the locations: They are all equally defined in my dummy but can be specified individually. You can even define multiple charging stations at one location
Same applies for the charging stations at the locations: They are all equally defined in my dummy but can be specified individually. You can even define multiple charging stations at one location
For the locations I defined
  • the maximum power
  • 2mins for preparation before the charging process starts
  • 2mins completion duration after the charging process

Code: Select all

 {
      "layover": "WITHOUT_ORDERS",
      "id": "Loc-0",
      "latitude": 49.01094692,
      "longitude": 8.408470917,
      "chargingStations": [
        {
          "id": "132898cd-67f7-4ce5-8953-8eedbaa08adf",
          "maximumPower": 100.0,
          "preparationDuration": 240,
          "completionDuration": 240
        }
      ]
}
The vehicles look like this:
  • Total capacity : 66 kWh
  • Initial state 50% loaded (=33 kWh)
  • Minumum state that requires charging: 5% (= 3.3kWh)
  • Consumption per 100km: 23 kWh

Code: Select all

{
      "id": "Vehicle-0-0",
...
  "battery": {
        "capacity": 66.0,
        "stateOfCharge": {
          "initial": 0.5,
          "minimum": 0.05
        },
        "consumption": {
          "perHundredKilometers": 23.0
        }
      },
...
    },
And here are the results:
In the time tree I display the charging slot after the appointments. In the map a charging is displayed as a star symbol
In the time tree I display the charging slot after the appointments. In the map a charging is displayed as a star symbol
For each route I determine and return the charging time.
For each route I determine and return the charging time.
The chart shows the overall contribution of charging time in the routes.
The chart shows the overall contribution of charging time in the routes.
Bernd Welter
Technical Partner Manager Developer Components
PTV Logistics - Germany

Bernd at... The Forum,LinkedIn, Youtube, StackOverflow
I like the smell of PTV Developer in the morning... :twisted:
Post Reply