You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Coordinates is defined as std::array<Coordinate, 2>, which does not inform on the order of the coordinate pair. Is it (Lat, Lon) or (Lon, Lat)? At first I made a mistake and provided the coordinates in incorrect order.
The situation could be improved by adding e.g. an enum: enum { LON_INDEX = 0, LAT_INDEX = 1};, or better yet, by defining coordinates as a struct with named members.
The text was updated successfully, but these errors were encountered:
Coordinates
is defined asstd::array<Coordinate, 2>
, which does not inform on the order of the coordinate pair. Is it (Lat, Lon) or (Lon, Lat)? At first I made a mistake and provided the coordinates in incorrect order.The situation could be improved by adding e.g. an enum:
enum { LON_INDEX = 0, LAT_INDEX = 1};
, or better yet, by defining coordinates as a struct with named members.The text was updated successfully, but these errors were encountered: