open-balena-api
open-balena-api copied to clipboard
User wants support for device custom lat/long
The custom latitude
& custom longitude
device fields are currently not supported on openBalena.
[thgreasi] This issue has attached support thread https://jel.ly.fish/#/6e118a22-8ea2-4259-96fb-025c4e497f69
Any news on this issue ?
i.e. custom lat/long is still not supported by the balena API , it seems...
let balenaDevice = try await WebService.shared.fetch(from: self.balenaResource)
let location = balenaDevice.d[0].location
location
still represents the non-custom (i.e. original) latitude/longitude, unfortunately....
Yeah, custom location support was added long after automatic reverse geocoding and for some reason it was implemented within balena-api, our internal codebase. It definitely belongs to open-balena-api though and should be easy to move the code over, just needs someone from the backend team to spend a few hours on it.