Answer the question
In order to leave comments, you need to log in
How to translate the name of the city into coordinates on the repl.it service without any keyapi?
Hello!!
How, if possible, to translate the contents of the file in the spirit:
Москва
Киев
Москва, широта_М, долгота_М
Киев, широта_К, долгота_К
import csv
import pygeocoder
import pandas as pd
from pygeocoder import Geocoder
df = pd.read_csv('./input.csv')
address = df
for a in address:
result = Geocoder.geocode(a)
print(result[0].coordinates)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question