-
Notifications
You must be signed in to change notification settings - Fork 119
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Destination coordinates mixed #17
Comments
It's probably because MapBox Location parameters (latitude and longitude) are standardized in that way. |
That's fine but at least we can put in component, |
Yeah. Not Sure But You Could Try |
This is an artifact of how this library evolved and also to stay consistent with |
I was trying to run some tests with different locations and finally I figure out that the latitude and longitude are mixed up
let originWaypoint = Waypoint(coordinate: CLLocationCoordinate2D(latitude: origin[1] as! CLLocationDegrees, longitude: origin[0] as! CLLocationDegrees)) let destinationWaypoint = Waypoint(coordinate: CLLocationCoordinate2D(latitude: destination[1] as! CLLocationDegrees, longitude: destination[0] as! CLLocationDegrees))
Any reason for this?
I should expect
origin=[latitude, longitude]
anddestination=[latitude, longitude]
The text was updated successfully, but these errors were encountered: