Transforming our data pipeline
As a reminder, as we did in Chapter 4, Sourcing the Data, we are downloading the formatted address of the London Eye from the Google Maps Find Place API ( https://developers.google.com/maps/documentation/places/web-service/search-find-place). Now we need to transform the JSON output, cleanse it, and perform tests and profiling on the dataset for saving. The API URL we are calling is as follows:
https://maps.googleapis.com/maps/api/place/findplacefromtext/json?fields={return_fields}&input={place}&inputtype=textquery&key={API_Key}
In this call, the parameters we are customizing are as follows:
{place}
is the place that you want to search for (the London Eye, UK, in our example).{Return_fields}
is a comma-separated list of the fields that you want to receive from the API. Our example returned the formatted address, but you can get a full list of options in the Find Place API documentation (https://developers.google.com/maps...