In my project, I want to access the location/city of the user so that I’ll be able to show the dermatologists nearby the users location and this will only happen when they clicks the button “Access my location” on the html page. So when the user clicks this button, the @app.route() goes to the app.py and I have written the following code.
@app.route('/access')
def my_location():
try:
geoip_data = simple_geoip.get_geoip_data()
return jsonify(data=geoip_data)
except Exception as e:
return render_template('home.html', msg = e)
But when this code is executed, [I get the following result.][1] [1]: https://i.stack.imgur.com/wRCB0.png
Why doesn't it show my country, city or anything? Please help if possible!