Skip to content

EVMap OSM Data Updater PoC

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

dbrgn/evmap-osm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EVMap OSM Data Updater (PoC)

This is a proof-of-concept for a charging station data fetcher for OpenStreetMap. The script fetches all charging stations worldwide through the Overpass API, preprocesses the data and writes it to a gzip-compressed JSON file.

Requirements

Data Format

The resulting gzipped file contains one JSON object per line.

The first line is a metadata object and may be skipped. All subsequent lines contain one JSON charging station object per line.

Format of the metadata object:

{
  "type": "meta",
  // UNIX timestamp in seconds
  "timestamp": 1633282807,
  // Generator URL
  "generator": "https://github.com/dbrgn/evmap-osm"
}

Format of a charging station:

{
  // Unique numeric ID
  "id": 9079237567,
  // Latitude, longitude (WGS84 coordinates, I assume)
  "lat": 47.0701573,
  "lon": 7.5664432,
  // Timestamp of last update
  "timestamp": "2021-09-10T11:47:56Z",
  // Numeric, monotonically increasing version number
  "version": 1,
  // User that last modified this POI
  "user": "dbrgn",
  // Raw key-value OSM tags
  "tags": {
    "amenity": "charging_station",
    ...
  }
}

For the tagging schema, see https://wiki.openstreetmap.org/wiki/DE:Tag:amenity%3Dcharging_station

Usage

Simply invoke the script:

./load-overpass.sh

Note: The API query may take multiple minutes. The default timeout is set to 15 minutes, but depending on the load on the API endpoint, this may not be sufficient.

The script can be adjusted by editing the configuration variables. Possible configuration variables include the Overpass API endpoint or the download timeout.

License

Licensed under either of

Contributions

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

About

EVMap OSM Data Updater PoC

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages