On Nov 16, 12:34 am, GG <
gerber.g...@gmail.com> wrote:
> The two coordinates I am trying to fit are random.
> How do I determine their relation to one another?
> In order for LatLngBounds to work I need to know which is SW and which
> is NE.
No, you don't. Use LatLngBounds like this:
var bounds = new LatLngBounds();
bounds.extend(point1);
bounds.extend(point2);
Then the points' relation to each other doesn't matter.
Incidentally, unless your points span the 180-degree longitude line,
figuring out their relationship is a pretty trivial matter of
comparing their latitude & longitude values...
String