API purpose Finding information about the International Space Station
Signup No signup necessary
Github Click here for link
Comment Really fun dataset to play with
I did promise some time manipulation stuff today but it was super boringso I got interested in space instead. Fellow bedlabber (that’s a word) vykta sent on a link to Urethcast, a service which provides pictures from the International Space Station (ISS). He’s promised to write up a post on it this month so stay tuned for that. It did get me thinking about what other sources of open data are available from the ISS.
I did some googling and found open-notify, a wrapper API for some of the data Nasa puts out. Turns out space agencies have a good understanding of where the ISS is at any given time, who would have thought? Open-notify provides information on where the ISS is, when it will be visible over a given GPS coordinates and who is on board. All cool stuff 🙂
It did give me the opportunity to implement a few things:
Epoch converter, epoch time (or unix time) is time quoted in seconds since 00:00:00 UTC on Thursday, 1 January 1970. Its useful for comparing times on servers but is not very human readable.
Reverse geocoding, for if I got a set of GPS coordinates and want a real address, I’ve made a function for that now
Its a nice little script, returns a little table of data like so:
I also realised I’ve been consistently spelling longitude incorrectly all week for my variables. Oh well. Check out the code, again its all commented so hopefully is understandable. Any questions pop them in the comments.
All the code is on the github. I’ve realised that its not exactly readable without the indents now that my programs are more complex. I’ll have a read on the wordpress nexus to see how its done and maybe only copy the interesting bits from now on.