Enriching the data
Finally, as an optional exercise and if you want to enrich the movie location data, you can get some extra movie info and an image of the movie from the OMDb API. Since we know the title of the movie, we can perform a query on the API. The response, nicely formatted as JSON, teaches us something about the plot, actors and it even gives us the URL to an IMDB image. We can show this in the app to inform the user what the movie is all about.
To obtain an API key go to http://www.omdbapi.com and click on the API key link. You can get one for free if you register with your email address. You will receive an email with your own API-key and an activation link. After activation you can add your API key in the request.: http://www.omdbapi.com/?t=Basic+instinct&y=&plot=short&r=json&apikey=<api ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access