pelias / polylines

Pelias import pipeline for polyline (road network) data.
MIT License
17 stars 24 forks source link

mix multiple road network? #220

Open stefanocudini opened 5 years ago

stefanocudini commented 5 years ago

hi,

I'm using pelias with a different set of data sources.

can I get a mix of road network and road names from two different data sources(I have two polylines file)?

I have openstreetmap and also another different data source with best(and more complete) roads names, but the geometries does not correspond to openstreetmap streets. In this case I was wondering how imported house numbers are interpolated?

Or the best way in pelias is to use one and only one road network?

missinglink commented 5 years ago

You can mix datasets but the only issue will be deduplication.

If you have duplicate streets, but with different paths, then it's possible that some addresses are associated with one and some with the other. This will reduce the accuracy of results for these streets but I'm not sure how much of a problem it would be in reality because the search logic would likely select the correct street based on the input lat/lon.

Another option you have is to import OSM then delete streets using a bounding-box and then import your other file which has better road names for that same bounding-box, this should help to reduce duplication.

missinglink commented 5 years ago

Oh sorry, I thought this issue was for pelias/interpolation, so the above is relevant to that repo.

For pelias/polylines I believe there is something which hard-codes the source to openstreetmap, but other than that you can import other polylines files and they'll appear in the street layer.

missinglink commented 5 years ago

Deduplication will also be an issue, although pelias/api will make some attempts to deduplicate results before they are returned to the user.

stefanocudini commented 5 years ago

hi @missinglink I'm trying to import multiple road network.. I'm create in /data/polylines/ more file .0sv from datasource other then osm, I;m generated a custom polylines file from a my shape file. But I'm just seen that interpolation module of pelias ignore more.. file in /data/polylines.. look at here:

https://github.com/pelias/interpolation/blob/05b6c3718dbeaadf2ed3503d40a51fee896ca29e/docker_build.sh#L5

the script read consider only first file! :(

...import OSM then delete streets using a bounding-box ... Other questions is... how can I do it in pelias?

missinglink commented 5 years ago

Hmm you are correct, we did not have need to import multiple polylines files until now.

Two options:

stefanocudini commented 5 years ago

Hmm you are correct, we did not have need to import multiple polylines files until now.

Two options:

  • (easy way) join the files in to one file

just exists in pelias orgs.. repos.. some scripts to help this operation??? beacause.. I thinking join two polylines file having similar gometries.. cloud be cause problems..

Could be a very useful a tool to insert in the pelias module polylines, that make it possible to merge different road networks derived from data sources other than osm. Trough some conflation tool.