To have this notebook package compile, We collected geographical location data for both cities. We collected data mainly as below:
Postal Codes
Categories
Neighborhoods
Boroughs
Venues and Categories.
London
We scraped our data from https://en.wikipedia.org/wiki/List_of_areas_of_London. This wikipedia page has information about all the neighborhoods. Data we selected is Neighborhood (borough), Town (name of borough), and postal code. This wikipedia does not have geographical information so I have used Arcgis API to get geo locations of the neighborhoods i.e. latitude and longitude for London’s neighborhoods.
Paris
I have used JSON data that was available at https://www.data.gouv.fr/fr/datasets/r/e88c6fda-1d09-42a0-a069-606d3259114e to get the data for our solution. We only selected data for Paris and selected below noted data columns
postal_code : Postal codes
nom_comm : Name of Neighborhood
nom_dept : Name of the Town
geo_point_2d : latitude and longitude of eachNeighborhood.
Foursquare API
We used Foursquare to get data for different venues in different neighborhoods. Foursquare proides locations data related to venues and events within an area of interest. You can get venue names, locations, menus and location photos. We used foursquare location as the sole data source since all the stated information can be obtained through Foursquare API.
After compiling the list of neighborhoods, we connected through Foursquare API to get information related to venues inside each neighborhood. We limited the radius to be within 500 meters.
We retrieved below data for each venue as follows:
Neighborhood : Name of the Neighborhood
Latitude : Latitude of the Neighborhood
Longitude : Longitude of the Neighborhood
Venue : Name of the Venue
Venue Latitude : Latitude of Venue
Venue Longitude : Longitude of Venue
Venue Category : Category of Venue
We cluster the neighborhoods based on similar venue categories and then presented observations and findings. Stakeholders should be able to take necessary decision after using this data.
Recent Comments