hove-io / navitia

The open source software to build cool stuff with locomotion
https://www.navitia.io/
GNU Affero General Public License v3.0
434 stars 126 forks source link

custom POIs from csv file #1882

Open yipcma opened 7 years ago

yipcma commented 7 years ago

@antoine-de for documentation/example file of custom POIs in a csv file instead of/in addition to ingesting from .osm.pbf

Thank you very much.

yipcma commented 7 years ago

Hi @pbougue , I'd like to follow up on how to add POIs/places so that navitia can use those locations as origins/destinations for routing. Thank you.

pbougue commented 7 years ago

The OSM way For the osm POI here is the default value of params that handle it : https://github.com/CanalTP/navitia/blob/dev/source/ed/default_poi_types.h The json describes what OSM tags are "detected" as POI and what is their final POI-type (french types). If you want to change that json parameter, the easiest is probably to do that in tyr: https://github.com/CanalTP/navitia/tree/dev/source/tyr#poitypes or you can provide it to osm2ed using "-p" then the json-as-a-string. The default list of poi_types: https://api.navitia.io/v1/coverage/fr-idf/poi_types A poi output when calling /places : https://api.navitia.io/v1/coverage/fr-idf/places?q=jardin%20espace%20vert

The CSV way For the csv part (so no-OSM POI) you have to provide the poi files in a zip, and there seems to be no doc for that... Except for that short, but usefull warning to go back to osm POIs: https://github.com/CanalTP/navitia/tree/dev/source/ed#poi2ed You have 3 csv files:

yipcma commented 7 years ago

What exactly is the format for the osm files and steps to incorporate it? do i just drag and drop a .pbf file to the data folder where i put the gtfs.zip under a region folder?

pbougue commented 7 years ago

Yes, you put a regular osm.pbf file, and it should be processed both for street network and POIs.