A
A
Alexander2018-06-11 09:50:41
Geolocation
Alexander, 2018-06-11 09:50:41

How to get the address from the received Location?

When a user sends their location to my bot, I get a LocationMessage, from which I take the Location.
In Location, in turn, there are only longitude and latitude.
Question: is there any field in these two classes that will return me a string with the address?
(For example: Russia, Moscow, streetname street, house 227 )

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dimonchik, 2018-06-11
@AlexNineteen

Use GIS libraries like https://pypi.org/project/geopy/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question