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

Incorrect behavior across +-180 longitude. #22

Open
dhyams opened this issue Apr 3, 2020 · 0 comments
Open

Incorrect behavior across +-180 longitude. #22

dhyams opened this issue Apr 3, 2020 · 0 comments

Comments

@dhyams
Copy link

dhyams commented Apr 3, 2020

The API doesn't seem to behave correctly when the bounding box given crosses the +-180 degree longitude line. For example, if I call the OpenSky API with the following bounding box (reminder: bounding box is latmin, latmax, lonmin, lonmax)

[14.55, 80.0, -179.9, -120.8]

it found (at the moment) 157 planes in that box. If I slightly modify the box to

[14.55, 80.0, +179.9, -120.8]

I get zero planes, when the bounding box has been in reality enlarged very slightly on the western side.

If I reverse the two longitude numbers, I do indeed get a result, but it wraps around the earth the wrong way.

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