This recipe will show you an example of connecting to a server on the internet in order to consume its RESTful web service. The web service will provide data in JSON format, which will then be parsed so that we can access different parts of the returned dataset.
We will consume a web service that provides the current location of the International Space Station (ISS). Since the ISS moves at an incredible speed of 28,000 km/h, we can watch its position, which is expressed in terms of longitude and latitude, change as we repeatedly call this web service. Whenever you want to create a MicroPython project that connects to the rich world of internet-based web services, you can use the techniques covered in this recipe as a starting point to build these connections.