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>enWed, 17 Sep 2014 13:35:34 +0100Comment by sleske on scupetta18's questionhttps://help.openstreetmap.org/questions/36805/there-is-a-formula-to-understand-the-position-of-two-coordinates#36878<p>Not a real question, closing.</p>sleskeWed, 17 Sep 2014 13:35:34 +0100https://help.openstreetmap.org/questions/36805/there-is-a-formula-to-understand-the-position-of-two-coordinates#36878Comment by SomeoneElse on scupetta18's questionhttps://help.openstreetmap.org/questions/36805/there-is-a-formula-to-understand-the-position-of-two-coordinates#36807<p>It's not exactly clear what you're asking here - do you want to calculate the distance between two places (for which you have some sort of positional co-ordinates - either decimal latitude and longitude or some other sort), and if so is that "as the crow flies" or by road? Or are you asking something else entirely?</p>
<p>Would it be possible to add some more words describing in more detail what you are trying to do? If your first language isn't English feel free to use that - lots of people here speak many different languages.</p>SomeoneElseSat, 13 Sep 2014 16:56:00 +0100https://help.openstreetmap.org/questions/36805/there-is-a-formula-to-understand-the-position-of-two-coordinates#36807Answer 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