BMW-i-Remote
BMW-i-Remote copied to clipboard
Mandatory parameter(s) missed or blank: dlat and dlon are required for BMW vehicles
I have a 3 series. I'm not using the API, but wondered if anyone else had noticed this too. When I make a call to /webapi/v1/user/vehicles/'.$vin.'/status i get:
{
"error": {
"code": 500,
"description": "(SmartPhoneUtil-A-101) Mandatory parameter(s) missed or blank: dlat and dlon are required for BMW vehicles!"
}
}
if i add the lat + long of my home as querystring paramaters (/?dlat=x&dlon=y
) it works but i don't get a lot of other data (e.g. door status) although i guess that's to do with the options available on my car:
{
"vehicleStatus": {
"vin": "(my VIN)",
"updateTime": "2016-08-28T17:52:44+0200",
"position": {
"lat": 5x.xxxxx,
"lon": -y.yyyyy,
"status": "OK"
}
}
}
Here's the problem - if the car is more than half a KM from home, when i get:
{
"vehicleStatus": {
"vin": "(my VIN)",
"updateTime": "2016-08-28T17:52:44+0200",
"position": {
"status": "TOO_FAR_AWAY"
}
}
}
(not sure what the "updateTime" value is as that's clearly a long time ago).
You have to send the lat
& lon
parameters. However, cars build before 7/2014 (except i3/i8) will only show the location if your current location (aka your paramaters) are within 1km (see chapter 10).