Questions tagged [geopy]

geopy allows you to convert between partial place names and latitude/longitude coordinates by wrapping many different online API's and providing access through one standard interface.

geopy allows you to convert between partial place names and latitude/longitude coordinates by wrapping many different online API's and providing access through one standard interface. Additionally, it contains convenience functions for parsing lat/long coordinates and finding as-the-crow-flies distance between them.

geopy makes it easy for developers to locate the coordinates of addresses, cities, countries, and landmarks across the globe using third-party geocoders and other data sources.

geopy includes support for many geocoders such as Google Maps, Bing Maps, Nominatim, and GeoNames.

504 questions
0
votes
0 answers

Geopy - geocoders: AttributeError: 'module' object has no attribute 'Yahoo'

Team Geopy users, I am in need of help with the above-mentioned issue. I wrote the following piece of example in preparation of a much bigger assignment: ## example 2: geopy.geocoders.MapQuest = None geocode(['13850']) However, I keep getting the…
Vondoe79
  • 313
  • 4
  • 22
0
votes
0 answers

GeocoderServiceError Geopy Nominatim in Local Server

I did my own OpenStreetMap local server(to avoid the online limits) with Nominatim and it's working ok through the webpage(localhost/nominatim). But when I try to collect geocodes (same that works well on the webpage) and after some number of…
0
votes
1 answer

Error Using geopy library

I have the following question, I want to set up a routine to perform iterations inside a dataframe (pandas) to extract longitude and latitude data, after supplying the address using the 'geopy' library. The routine I created was: import time from…
Clayton Tosatti
  • 196
  • 1
  • 4
  • 20
0
votes
1 answer

Geo-coding with Pandas - apply different geo-coding to lambda x based on conditions

I was trying to do the geo-coding to pull the postcodes. I have two different data sources applied to the geo-coding. a. First try with street address & city & country b. If nothing rerun then try with city & country My program is like below, it…
Jack
  • 1,339
  • 1
  • 12
  • 31
0
votes
0 answers

how to split dataframe, process and combine in pandas

Question : Is there a straightforward way to split pandas dataframe into multiple groups based on index, apply a pre-defined function to calculate a new feature and combine the groups back to original shape with extended feature? I'm trying to…
0
votes
1 answer

How to print GoogleV3 location in pandas

I have thousands of address in my dataframe, I was cry paste for one-by-one longitude and latitude in spreadsheet, but I want to automate this in thousands of address. Here's my previous code from geopy.geocoders import GoogleV3 geolocator =…
Nabih Bawazir
  • 6,381
  • 7
  • 37
  • 70
0
votes
1 answer

geopy NoneType object has no attribute 'latitude'

I'm learning geopy and am having trouble understanding the kind of argument that it accepts when returning address or longitude/latitude values. I have a pandas series with address information I'm trying to get the lat/lon of each address. When…
eh2699
  • 127
  • 1
  • 4
  • 11
0
votes
1 answer

geopy using apply method and time sleep

I would like to do some reverse geocoding on my dataframe using geopy. However, I have 3000 obs and it raises the GeocoderServiceError: HTTP Error 429: Too Many Requests. I would then like to run the code using the apply method together with a…
federico zampu
  • 99
  • 1
  • 10
0
votes
1 answer

Filtering Spark SQL dataframe for distance

I have a Spark SQL DataDrame with columns latitude and longitude, I am trying to filter rows that fall below a threshold by calculating the distance to an input. My current code looks like. I am using geopy (great_circle) for calculating the…
Pramod Sripada
  • 241
  • 1
  • 5
  • 16
0
votes
0 answers

Python3x: How do I get coordinates for addresses from the csv list?

I have a list with addresses in the csv file. I would like to get coordinates for this whole list. Unfortunately, I'm getting an error: Traceback (most recent call last): File "", line 8, in
BigD
  • 77
  • 10
0
votes
1 answer

failure to import geopy in jupyter notebook after using pipenv install

I am using pipenv to install packages and create my virtual environment within my project repo. I am able to install geopy and confirm its installation using pipenv graph, but when I go into my pipenv shell and open jupyter notebook and try to…
0
votes
1 answer

Python installing modules : Invalid Syntax

I am trying to install Geopy, i am getting following error. Till yesterday i have installed packages , there was no probelm. Thanks Pavan Kumar
0
votes
1 answer

The country belonging to a location (python)?

Via Given the lat/long coordinates, how can we find out the city/country? I tried to get information from the coordinates, and it works, as Farsheed writes in python. But can I get only the country as answer, does it exist such an attribute to give…
0
votes
1 answer

Django - using geopy to populate google maps template

I am trying to use geopy and the Google api. I am querying through models to pull address city,state address detail that will feed into geopy's locator and give me lat/lng for the Google Maps api. I would like to: a.) Get a unique set of lat/lng…
0
votes
0 answers

Geopy - HTTP error 404: Not Found

I am using a geopy package to get address from Lon/Lat coordinates. The code looks as follows: from geopy.geocoders import Nominatim geolocator = Nominatim(scheme='http') location = geolocator.reverse('43.4393,-3.7694', timeout=5) print…
HonzaB
  • 7,065
  • 6
  • 31
  • 42