I am trying to connect google geocode api and github api to analyze the user's location and create a list from it.
The array (list) I want to create is as follows:
location, lat, lon, count
San Francisco, x, y, 4
Mumbai, x1, y1, 5
Where the location, lat and lon are analyzed from the Google geocode, it is believed that this place. Every time a new place is added: if it exists in the list, the account increases, otherwise it is added to the array (list) with the location, lat, lon, and the account should be 1.
Another example:
location, lat, lon, count
Miami x2, y2, 1
San Francisco, x, y, 4
Mumbai, x1, y1, 5
Cairo, x3, y3, 1
I can already get the user's location from github and get geocoded data from Google. I just need to create this array in python that I am struggling with.
Can anyone help me? thank.