The OpenSky Network
Network
OpenSky Explorer
Emergency Alerts
Coverage & Facts
Receiver Ranking
VHF/Voice Feeding
Community
Forum
Events
Projects
Publications
Blog
Data
Aircraft Database
Live API
Historical Database
Data Tools
Scientific Datasets
Downloads
Apply for Data Access
About
About Us
FAQ
Social Impact
Partners
Terms of Use
Privacy Policy
Contribute
Improve Coverage
Become A Feeder
My OpenSky
Login
Home
>
Forum
>
General
>
Questions
>
REST API with longitude w Negative numbers fails
×
Notice
The forum is in read only mode.
Index
Recent Topics
Search
Index
Recent Topics
Search
Forum
General
Questions
REST API with longitude w Negative numbers fails
REST API with longitude w Negative numbers fails
Start
Prev
1
Next
End
1
mikero1955
Topic Author
Offline
New Member
Less
More
Posts: 2
Thank you received: 0
5 years 6 months ago
-
5 years 6 months ago
#761
by
mikero1955
REST API with longitude w Negative numbers fails
was created by
mikero1955
Hello, I've been trying to write an app that displays aircraft info using the rest functions lomin, lomax, lamin, lamax like thus.
opensky-network.org/api/states/all?lamin....3382&lomax=129.8863
This works just fine as long as the lomax / lomin are positive numbers and should give all aircraft somewhere over Taiwan.
But if you change the lomin / lomax to be negative (Somewhere near San Jose CA) it fails to return any states.
opensky-network.org/api/states/all?lamin...3382&lomax=-129.8863
Is this a bug or am I just using it incorrectly?
Thanks,
Mike
Last edit: 5 years 6 months ago by
mikero1955
.
meides
Offline
Senior Member
Less
More
Posts: 53
Thank you received: 22
5 years 6 months ago
#763
by
meides
Replied by
meides
on topic
REST API with longitude w Negative numbers fails
Hey Mike,
since you are passing negative numbers -129.8863 is actually smaller than -118.8863. Switch the min and max values:
opensky-network.org/api/states/all?lamin...3382&lomax=-118.8863
Best,
Marco
The following user(s) said Thank You:
mikero1955
mikero1955
Topic Author
Offline
New Member
Less
More
Posts: 2
Thank you received: 0
5 years 6 months ago
#767
by
mikero1955
Replied by
mikero1955
on topic
REST API with longitude w Negative numbers fails
Many thanks, I cannot believe I didn't get that!
Start
Prev
1
Next
End
1
Board Categories
General
- Announcements
- Questions
- Discussions
- Feature Updates
Support
- Application Programming Interface
- Receiver Setup
- Data
OpenSky
- Projects
- Feature Requests
- Bug Reports
Forum
General
Questions
REST API with longitude w Negative numbers fails
Powered by
Kunena Forum
This website uses cookies to offer you the best experience of our services. By using this website you agree to our privacy policy!
Ok
More information