Trip Planner
Endpoints for Trip Planner
Last updated
Endpoints for Trip Planner
Last updated
Plans a route based on the vehicle specifications and charge state. Trips that require charging will set waypoints based on Tesla Supercharger locations along the route.
trip-planner/api/v1/tripplan
Request a trip plan based on the car model, origin, destination and remaining charge.
Field | Example | Description |
---|---|---|
{
"car_trim": "74D",
"car_type": "ModelY",
"destination": "37.485767,-122.340207",
"origin": "37.79307,-125.108",
"origin_soe": 0.64,
"vin": "5YJSA11111111111"
}
{
"destination_soe": 0.064,
"origin_soe": 0.65,
"polylines": [
"usccFlbhhV~HD?aEAkLbQjOjV|Sbp@pn@|MrSoB`Ac@aCrP_KzFiF|FcInEaNpF}Y|IkPhNwKfJeKtCeHhPae@jNqQdUwg@jTg_@tEwKdByKJmNkCeXa@cO`B_PlJ_d@xFsWhGgJ`J}Glj@oLta@{O~N_GnJuHz]gc@bf@{l@d`Aku@tWgU`TcZpSwYfRk\\hNqc@dIa_@bx@ezBfNcb@rEyWnUqaAhRafBbH}r@P_v@UieBYo_AqGyf@uOgw@qEaZ@mXlAocAZgy@zBc[xK{Z~r@yiB~CiPn@gOZceA`Dka@lMsu@lBga@sDcf@yEkk@o@{XxJuZdLwVb_@mw@hZ{n@n^wi@~a@ik@nt@_v@viAw{Btl@a`Ax_@ii@dZyVv[e^|b@ch@jUiR|Q}OnPaUnSgWrYsXbaAe_Atj@kf@dkAil@v`@_Sl\\eTvcAkuAlQgQpj@iX~zBecA~pBgq@niBao@deA{c@rR_Gt@sAo@_CaEcOqF{OiPwm@cd@{_BmFqVnByH`SwR~[iSnw@af@f`@mThJcEdDwGtWwY~e@gi@l_@}^xVeYvZoeAjLasAWsTsH_MaLwWoCmMKkQiEiMw@aJ`AwGvMuZlHmPdJgKdF}CzP{DtRoM`OgJ~DqLIsPkBiOnAoLtQwv@`GaNfViYxOqTpDwPFgK{AsIaEmHwQa_@cPkn@{GaJmIqBik@sE{JrCw[`NyKnAmJqAwf@w]{HeHmRiXk`@eb@yWyt@wMks@iIku@mDaL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AkUNgE?yDKuEOaC}@cIUcCIqAKaCCgG?uGAwFEaBQgDw@yHg@wEE]LS@CBmBHuBLgBn@uGh@eFJ]PULCf@EzHD|CATKd@AvC?nEA~EC|D?pBAzCG|C@tDEvGChBAVLdEB^??rECtJ?bCBvHB`I?bJAp@"
],
"status": "TRIP_PLAN_SUCCESS_WITH_STOPS",
"stops": [
{
"addr": "W Panoche Rd, Firebaugh",
"arrival_soe": 0.123,
"charge_dur_s": 1180.79,
"charge_kWh": 52.013,
"id": "2768",
"location": {
"lat": 36.639154,
"lng": -120.625877
},
"name": "Firebaugh, CA",
"trt_id": "11676"
},
{
"addr": "Copus Rd, Bakersfield",
"arrival_soe": 0.108,
"charge_dur_s": 1351.903,
"charge_kWh": 55.878,
"id": "4506",
"location": {
"lat": 35.094359,
"lng": -119.040751
},
"name": "Bakersfield, CA – Copus Road (No Amenities)",
"trt_id": "16818"
},
{
"addr": "Highland Ave, Highland",
"arrival_soe": 0.112,
"charge_dur_s": 1506.139,
"charge_kWh": 58.946,
"id": "2898",
"location": {
"lat": 34.135162,
"lng": -117.195175
},
"name": "Highland, CA",
"trt_id": "12324"
},
{
"addr": "Frontage Rd, Ehrenberg",
"arrival_soe": 0.12,
"charge_dur_s": 960.943,
"charge_kWh": 46.249,
"id": "1888",
"location": {
"lat": 33.601995,
"lng": -114.522011
},
"name": "Ehrenberg, AZ",
"trt_id": "5637"
},
{
"addr": "S Watson Rd, Buckeye",
"arrival_soe": 0.098,
"charge_dur_s": 300,
"charge_kWh": 14.564,
"id": "55",
"location": {
"lat": 33.443011,
"lng": -112.556876
},
"name": "Buckeye, AZ",
"trt_id": "2145"
}
],
"total_charge_dur_s": 5299.774,
"total_charge_kWh": 227.65,
"total_drive_dur_s": 40274.0,
"total_drive_kWh": 229.461,
"total_drive_mi": 729.106
}
car_trim
74D
Car Model Variant
car_type
ModelY
Car model
destination
37.485767,-122.240207
Destination Latitude and Longitude, separated by comma
origin
37.79307,-125.108
Origin Latitude and Longitude, separated by comma
origin_soe
0.64
State of energy (charging) on the origin. Values goes from 0.0
to 1.0
vin
5YJSA11111111111
Car VIN