D
D
Dozen Frozenballs2015-10-02 17:23:48
Python
Dozen Frozenballs, 2015-10-02 17:23:48

How to determine the coordinates of a city in Python?

Good afternoon.
I ask for advice on which module to use to solve my trivial task.
Everything is simple - when entering the name of the city in English “Voronezh”, and ideally in Russian, I would get its coordinates, like:

'latitude': 33.91640090942383,
'longitude': -118.40399932861328,

What module do you use, what do you recommend?
I considered the service from Yandex https://tech.yandex.ru/maps/doc/geocoder/desc/conc... but could not parse it, because there is little experience.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey, 2015-10-02
@Rossihin

For example, you can use this one https://pypi.python.org/pypi/geopy/1.9.1 it is a wrapper for other services that provide the necessary information

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question