Fiat: fix position api longitude

This commit is contained in:
andig 2022-01-31 19:36:40 +01:00
parent 62680b6f20
commit 7fbefb08f7

View file

@ -156,7 +156,7 @@ var _ api.VehiclePosition = (*Provider)(nil)
func (v *Provider) Position() (float64, float64, error) {
res, err := v.locationG()
if res, ok := res.(LocationResponse); err == nil && ok {
return res.Latitude, res.Latitude, nil
return res.Latitude, res.Longitude, nil
}
return 0, 0, err