Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [geopy]

geopy is a Python library for geocoding.

0
votes
0answers
50 views

GeoPy installation fails via pip3 on Windows / OSGeo4W shell

I have written a little geocoding for PyQgis script on my linux machine, and it runs just fine there. Now I would like to start using this script for PyQgis (Qgis 3.4.1) on Windows 10 as well. The ...
0
votes
0answers
110 views

Difference between haversine formula & geodesic distance for calculating distance

Background I have Vehicle driving data which includes Lat/Long points of a particular route. I drive in that route for 2 times. The driving data in that route is around 20 minutes. (Approximately ...
5
votes
1answer
280 views

What kind of margin of error can I expect in figuring distance?

I have reviewed Why is law of cosines more preferable than haversine when calculating distance between two latitude-longitude points? and that does not equate to the specific question that I wish to ...
4
votes
1answer
3k views

User_Agent argument in Nominatim in GeoPy

I am trying to understand argument in package geopy and Nominatim geocoder. from geopy.geocoders import Nominatim geolocator = Nominatim(user_agent="specify_your_app_name_here") from their ...
2
votes
1answer
340 views

Extracting GPS points inside the region boundary

I have large set of GPS coordinates of human mobility in different parts of China, but I am only interested in points in Beijing City. These points are in excel csv file that I read into pandas ...
1
vote
0answers
353 views

Dividing Geographical region into equal sized grid and retrieving indexing position

I have GPS coordinates of human mobility in Beijing Area. I want to divide geographical space in to rectangular grid, for example 2 sq. km (delta), and access the indexing position of any point inside ...
4
votes
2answers
216 views

Setting up service compatible with GeoPy?

GeoPy is a great tool, but the providers lack data for growing parts of the City that students are moving into, and we can't geocode them accurately because these providers can't update their data as ...
2
votes
1answer
1k views

Get city country with different names

I am using django-cities and geopy. I am trying to get city name, id and country name, id based on given latitude and longitude. Normally this is how you can get city and country using geopy. from ...
3
votes
1answer
582 views

Making ellipse geometry from some known parameters using PostGIS?

How to create an ellipse geometry with postgis from known axis coordinates and peak radius ? From picture below : Point A and Point B is known lat/lon R is a known result of fresnelZone ...
3
votes
4answers
2k views

Get lat lon extent of country from name using Python?

Is there any open source GIS function in python to get lat lon window given only country name. Something like: get_country_window('United states of america') should return: [-135, -50, 22, 50]
0
votes
1answer
283 views

how to use “components” argument in geopy GoogleV3 geocoder?

I would like to use GeoPy to geocode a number of locations; I would like to use the GoogleV3 geocoder as it is supposed to allow me to restrict the results so that, for instance, I can specify that I ...
4
votes
1answer
999 views

inaccurate distance measurements in Python

I've tried several ways of measuring the distance between two points in my Django application and comparing the results to a reliable measurement. My numbers are way off. For example, I'm assuming the ...
4
votes
2answers
14k views

plotting US cities on a map with matplotlib and basemap

I am hosting a conference and want to show a map of where the attendees have arrived from. I have an input file with the names of the cities. I'd like to put a dot on each city, and have the size of ...
0
votes
1answer
4k views

Using geopy's vincenty to find distances in pandas data frame?

I am trying to use geopy's vincenty on each row in a panda's dataframe. However, I am unable to get the syntax right in the lambda argument. geopy's vincenty takes two ordered pair arguments p1 = (...
0
votes
1answer
3k views

Python: Trying to figure out Geopy in python for reverse look ups

I am trying to test the following code on my system but I cannot get the correct output. Is this code correct for using geopy with GoogleV3? If so, how can I return country and continent name? ...
8
votes
2answers
3k views

Shapely Distance different from Geopy/Haversine

I am running a specific analysis where we use shapely to create buffers around points (store locations) and then check if other points (user locations) are present within that buffer value. When i ...
1
vote
1answer
9k views

Avoid time out error Nominatim Geopy Open Street Maps

How to avoid the "GeocoderTimedOut('Service timed out')" error in geopy using the osm nominatim geocoder? I am not interested in using an exception and skip some entries. I already use a time delay of ...
8
votes
2answers
2k views

Difference in destination location between pyproj and geopy

I am looking at ways to calculate (in Python) the destination location from a point given bearing and range. Based on the results comparison from the 2 libraries in subject(geopy and pyproj), I ...
2
votes
1answer
178 views

Generating properly-aligned shape from land survey description?

I'm looking through a variety of land surveys from construction permits in Florida, and I'm trying to generate a set of lat/lon points from them, in order to map them out. The surveys list a PLSS ...
1
vote
1answer
1k views

differences in distance between shapely and geopy

I am getting totally different distances from shapely and geopy. On one hand - it makes total sense, shapely measures on a plane and geopy measures on a spheroid. But the differences are so dramatic, ...
0
votes
1answer
1k views

GeoPy API error: GeocoderInsufficientPrivileges

Continually receiving error from standard address geolocation request using Nominatim. Code below: from geopy.geocoders import Nominatim address = "90, Park Avenue, New York City, New York, 10016" ...
2
votes
1answer
616 views

Does PostGIS have a Vincenty Distance calculation?

I have compared some distance calculations between geopy and PostGIS ST_Distance_Sphere, and it seems that PostGIS ST_Distance uses a calculation that is similar to the great circle distance rather ...
12
votes
4answers
21k views

What's the difference between vincenty and great circle distance calculations?

Python's geopy package features two distance measurements techniques: Great Circle and Vincenty's formulae. >>> from geopy.distance import great_circle >>> from geopy.distance ...
3
votes
2answers
2k views

Geopy Error with Reverse Geocoding

I am using Geopy. I get following error for the code. I have using the same code as on https://code.google.com/p/geopy/wiki/ReverseGeocoding from geopy import geocoders g = geocoders.GeoNames() (...