Skip to main content
GET
/
planner
/
optimizations
/
{optimization_id}
/
result
Get optimization result
curl --request GET \
  --url https://staging.api.fryte.xyz/planner/optimizations/{optimization_id}/result \
  --header 'Authorization: Bearer <token>'
{
  "battery_level_end": 0.41,
  "battery_level_start": 0.8,
  "optimization_id": 7658,
  "poi_list": [],
  "qualification": "Driveable",
  "sections": [
    {
      "length_m": 215246,
      "payload_kg": 19300,
      "poi_summary": {
        "address": "See Destination",
        "charge_time_min": 0,
        "coordinate_lat": 49.4521,
        "coordinate_lon": 11.0767,
        "energy_kWh": 0,
        "name": "Destination",
        "sec_duration_min": 201.95,
        "sec_length_km": 215.25,
        "service_time_min": 0,
        "start_soc": 0.41,
        "stop_soc": 0.41
      },
      "polyline": "BlX8w2pJ4wh4B...",
      "service_time_min": 30,
      "start_pos": [
        48.7758,
        9.1829,
        0.8
      ],
      "stop_pos": [
        49.4521,
        11.0767,
        0.41
      ]
    }
  ],
  "status": "succeeded",
  "toll_summary": [
    {
      "currency": "EUR",
      "tollSystem": "TOLL COLLECT GMBH",
      "total": 81.41
    }
  ],
  "tour_id": 7615
}

Documentation Index

Fetch the complete documentation index at: https://docs.fryte.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

optimization_id
integer
required

Optimization identifier returned by POST /planner/v2.

Query Parameters

tenant_id
integer | null

Tenant ID

Response

Successful Response

optimization_id
integer
required

Optimization identifier.

tour_id
integer
required

Internal tour identifier.

status
string
required

Job status: succeeded or not_drivable.

battery_level_start
number
required

Starting battery level (0-1).

battery_level_end
number
required

Battery level at the end of the tour (0-1).

qualification
string
required

Route feasibility: Driveable or not_drivable.

sections
ResultSection · object[]
required

Route sections with charging stop details. May contain more sections than the request if charging stops were inserted.

poi_list
ResultPOI · object[]
required

Charging stations considered as candidates along the route.

poi_filter
POIInfo · object

Charging station filter criteria applied to this optimization.

optimal_departure_time
string | null

Optimal departure time (HH:MM:SS) for reaching all time windows, if applicable.

time_windows_reachable
string | null

Whether all time windows could be reached.

available_charging_stations
ResultAvailableStation · object[] | null

All charging stations found within the route corridor. Only included when include_available_charging_stations is true.

not_drivable_reason
NotDrivableReason · object

Reason why the route is not drivable.

toll_summary
TollSummary · object[] | null

Toll costs aggregated per toll system.