Fiat: fix position api longitude
This commit is contained in:
parent
62680b6f20
commit
7fbefb08f7
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue