open-notify / Open-Notify-API

Source code for api.open-notify.org
http://open-notify.org/Open-Notify-API/
Other
351 stars 72 forks source link

#16: Properly check return type from safe_float() #17

Open richardneish opened 6 years ago

richardneish commented 6 years ago

Hi, I saw your API mentioned on HackerNews (https://news.ycombinator.com/item?id=15406963) - very cool.

However, I am in London, UK with a longtitude of close to 0, and I noticed the API does not work for longitude values of 0 (or latitude, or altitude).

Please take a look at the attached change, which seems to fix the issue.