I am getting the geo-data in a json file (geo.json) which has the following structure
{"userId":"Geo-data","data":{"mocked":false,"timestamp":1548173963281,"coords":{"speed":0,"heading":0,"accuracy":20.20400047302246,"longitude":88.4048656,"altitude":0,"latitude":22.5757344}}}
All I want is to print the place details corresponding to above data and if possible to show it on MAP also.I have tried the following code with geopy
from geopy.geocoders import Nominatim
geolocator = Nominatim()
location = geolocator.reverse("22.5757344, 88.4048656")
print(location.address)
print((location.latitude, location.longitude))
But the location I am getting is not very accurate. Whereas the same coordinates give good results in https://www.latlong.net/Show-Latitude-Longitude.html I also have a Google API key. However, what ever references I found so far are almost like a project themselves and a overkill for a beginner like me. The geopy code was fine but the location accuracy is very poor. Please help.
P.S I have tried geocoder also as
import geocoder
g = geocoder.google([45.15, -75.14], method='reverse')
print(g.city)
print(g.state)
print(g.state_long)
print(g.country)
print(g.country_long)
However it is printing 'None' in all the cases.