Answers to: There is a formula to understand the position of two coordinates?https://help.openstreetmap.org/questions/36805/there-is-a-formula-to-understand-the-position-of-two-coordinates<p>I need to understand the position of two coordinates. In particular I would know if exists a formula that can say me the relation beetwen the cordinates (I mean if a coordinate come first and the other came after). Anyone can suggest me some formula?</p>enSat, 13 Sep 2014 16:52:41 +0100Answer by scaihttps://help.openstreetmap.org/questions/36805/there-is-a-formula-to-understand-the-position-of-two-coordinates/36806<p>I guess you are refering to <em>latitude</em> and <em>longitude</em> from the <a href="https://en.wikipedia.org/wiki/Geographic_coordinate_system">geographic coordinate system</a>.</p>
<p>The latitude must be ≥ −90 and ≤ 90 whereas the longitude must be ≥ −180 and ≤ 180. So for all coordinates having a longitude between ≥ −90 and ≤ 90 you can swap latitude and longitude and the result will still be a valid position. Therefore such a "formula" cannot really exist, except for checking if both lat and lon are within these bounds.</p>scaiSat, 13 Sep 2014 16:52:41 +0100https://help.openstreetmap.org/questions/36805/there-is-a-formula-to-understand-the-position-of-two-coordinates/36806