tammoippen / geopip Goto Github PK
View Code? Open in Web Editor NEWReverse geocode a lng/lat coordinate within a geojson `FeatureCollection` and return information about the containing country (polygon).
License: MIT License
Reverse geocode a lng/lat coordinate within a geojson `FeatureCollection` and return information about the containing country (polygon).
License: MIT License
geopip 1.1
python 3.10.13
shapely 2.0.1
If I have a geojson Polygon I'm interested in and an underlying data source (say from Natural Earth) is it possible to use geopip
and these two inputs to get a list of all the cities located within that polygon?
OS: Pop!_OS 22.04 LTS
Python: 3.12.0
geopip: 1.1
I downloaded the ne_110m_populated_places.json
file from https://github.com/martynafford/natural-earth-geojson and set the REVERSE_GEOCODE_DATA
environment variable to the location of this file. I have the following test code:
import geopip
#Denver
tmp = geopip.search(lng=-104.984015952, lat=39.7391880484)
print(tmp)
and I get None
returned. It looks like from the repo of the geojson file that Denver is included in the file: https://github.com/martynafford/natural-earth-geojson/blob/master/110m/cultural/ne_110m_populated_places.json. I was wondering if I were doing something incorrect to get the None
value returned? Thank you in advanced for your help!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.