Best Data Visualization Project for beginners | Towards Data Science

People often tend to travel from one location to another location and explore new things, and in their journey, they need to know all the popular places around them so that they don’t miss out on any. So this application is for those people who need to know all the densely populated areas around them.
Input to this model is your current location and the radius of the search for which you need the recommended places. We use FourSquare API, that gives all the popular places around a given location and python to visualize this stuff.
To build this application we take the help of FourSquare API, so you need to have a developer account in the FourSquare Developer portal, don't worry it's free to use.
Here is how you can get the FourSquare API credentials
Visit the FourSquare Developer website.Create an account, it is free to use (you can find step by step guide here)So finally you will be having a CLIENT ID and CLIENT SECRET credentials with you, that will be used in further steps.
Visit the FourSquare Developer website.
Create an account, it is free to use (you can find step by step guide here)
So finally you will be having a CLIENT ID and CLIENT SECRET credentials with you, that will be used in further steps.
So to explore a location we use this URL provided by the FourSquare API
https://api.foursquare.com/v2/venues/explore?client_id={CLIENT ID}&client_secret={CLIENT SECRET}&ll={Latitude},{Longitude}&v={VERSION}&radius={RADIUS}&limit={LIMIT}
Client ID and Client Secret you will get it from your FourSquare Developer account.Latitude and Longitude are your current location coordinates, you can get these using python geopy library, which converts location to coordinates.Radius is one of the inputs given by the user.LIMIT is the number of results you want to fetch from API
Client ID and Client Secret you will get it from your FourSquare Developer account.
Latitude and Longitude are your current location coordinates, you can get these using python geopy library, which converts location to coordinates.
Radius is one of the inputs given by the user.
LIMIT is the number of results you want to fetch from API
Now we are ready with our requirements so let's start coding...
A raw data is fetched from FourSquare API as shown below
finally! our data is ready to be visualized, have a look at it...
Hurray! we made it, here is our final output which depicts
Name of the locationWhat is the category, it is famous forAddress of the locationDistance from current location
Name of the location
What is the category, it is famous for
Address of the location
Distance from current location
Note: Red marker shows the current location, whereas blue markers show the famous locations nearby
We created a FourSquare API account and got our unique credentials.We converted the address provided by a user to the location coordinates.We fetched data from FourSquare API and converted it to a data frame.Finally visualized the data frame on the map.
We created a FourSquare API account and got our unique credentials.
We converted the address provided by a user to the location coordinates.
We fetched data from FourSquare API and converted it to a data frame.
Finally visualized the data frame on the map.
This article shows the best and smart way to find all the popular locations near to you and this can be one of the best ways to start the data science projects for the beginners.
you can get full source code here