Code Example

 

JavaScript

Updated every 10 seconds

Powered by jQuery for simplicity, this JavaScript generates and populates a table containing the ephemerides of the bright planets by calling:
api-ephem.php?lat=35&lon=139

This code snippet does not show all available items of the JSON data set. A timer repeats the call every 10 seconds to update the ephemerides data.