Skip to content
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

Corner calculation wrong? #4

Open
klehmann opened this issue Jul 17, 2013 · 0 comments
Open

Corner calculation wrong? #4

klehmann opened this issue Jul 17, 2013 · 0 comments

Comments

@klehmann
Copy link

The GeoHashBox corners are currently calculated like this:

this.corners.topleft = new GLatLng(this.box.latitude[0], this.box.longitude[0]);
this.corners.topright = new GLatLng(this.box.latitude[1], this.box.longitude[0]);
this.corners.bottomright = new GLatLng(this.box.latitude[1], this.box.longitude[1]);
this.corners.bottomleft = new GLatLng(this.box.latitude[0], this.box.longitude[1]);

Shouldn't this be:

this.corners.topleft = new GLatLng(this.box.latitude[1], this.box.longitude[0]);
this.corners.topright = new GLatLng(this.box.latitude[1], this.box.longitude[1]);
this.corners.bottomright = new GLatLng(this.box.latitude[0], this.box.longitude[1]);
this.corners.bottomleft = new GLatLng(this.box.latitude[0], this.box.longitude[0]);

?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant