Pelias is a geocoder powered completely by open data, available freely to everyone.
Local Installation · Cloud Webservice · Documentation · Community Chat
The polyline importer facilitates importing road network data in to Pelias from a list of polyline encoded line strings.
Node.js is required. See Pelias software requirements for supported versions.
Since this module is just one part of our geocoder, we'd recommend starting with our Dockerfiles for quick setup, or our full installation docs to use this module.
$ git clone https://github.com/pelias/polylines.git && cd polylines
$ npm install
Pre-processed planet-wide road network files are available to download from Geocode Earth.
Note: the file extensions
.0sv
and.polylines
are used interchangeably, they both refer to the same file format; however there is code that looks for the.0sv
extension which is therefore preferable.
For more information on how the extract was generated, see the wiki article: Generating polylines from Valhalla.
We also have some smaller extracts for testing purposes, a small number were manually cut from pbf for the geographies of our major contributors. See the 'Generating a custom polylines extract from a PBF extract' section below for more info on how you can generate your own extracts:
note: these extracts were generated using a different method from the planet cut above.
Once you have downloaded and extracted the data you will need to follow the Configuration steps below in order to tell Pelias where they can be found.
If you would like to use a different source of polyline data you might need to tweak the defaults in ./stream/pipeline.js
, open an issue if you get stuck.
You can generate a polylines file from your own data, the data MUST be encoded in the following format:
n
) character.