teslamotors / vehicle-command

Apache License 2.0
445 stars 102 forks source link

`nearby_charging` endpoint not reporting # of stalls #33

Closed rawmean closed 1 year ago

rawmean commented 1 year ago

The nearby_charging_sites endpoint does not provide number of stalls (even when you include the detailed parameter: https://fleet-api.prd.na.vn.cloud.tesla.com/api/1/vehicles/<vid>/nearby_charging_sites?detail=true&count=5

        "superchargers": [
            {
                "location": {
                    "lat": 32.921308,
                    "long": -117.215126
                },
                "name": "place name",
                "type": "supercharger",
                "distance_miles": 4.364226,
                "site_closed": false,
                "amenities": "restrooms,restaurant,wifi,cafe,shopping",
                "billing_info": "",
                "id": 3714
            },

According to the documentation, it should return something like this:

 "superchargers": [
  {
   "location": {
    "lat": 37.399071,
    "long": -122.111216
   },
   "name": "Los Altos, CA",
   "type": "supercharger",
   "distance_miles": 2.202902,
   "available_stalls": 12,     <---
   "total_stalls": 16,           <---
   "site_closed": false,
   "amenities": "restrooms,restaurant,wifi,cafe,shopping",
   "billing_info": ""
  },
rawmean commented 1 year ago

Looks like they fixed it