Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Post-processing: Filter charging stations which are really in specified country #39

Open
LarsHaferkampEON opened this issue Jul 26, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@LarsHaferkampEON
Copy link
Contributor

LarsHaferkampEON commented Jul 26, 2023

Charging stations coordinate may be outside of the specified country, due to wrong geocoding, wrong address or other problems. So as a post-processing step, all charging stations for a country should be checked if they are really within the boundaries.
E.g. we can import a polygon for Germany into the DB and perform the check via a PostGIS function.

  1. Download Polygon via Overpass like we do for OSM charging stations, i.e. just query for the areas like we have already defined
e.g. area['name'='Deutschland'];
rel(pivot);
out geom;
  1. Convert to GeoJson / Geopandas and write to Postgis
  2. Check via Postgis ST_Within(charging_station, area) if a charging station is within the requested area
@LarsHaferkampEON LarsHaferkampEON added the enhancement New feature or request label Jul 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant