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

custom POIs from csv file #1882

Open
yipcma opened this issue Dec 1, 2016 · 4 comments
Open

custom POIs from csv file #1882

yipcma opened this issue Dec 1, 2016 · 4 comments

Comments

@yipcma
Copy link

yipcma commented Dec 1, 2016

@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
Copy link
Author

yipcma commented Feb 9, 2017

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
Copy link
Contributor

pbougue commented Feb 9, 2017

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:

  • poi_type.txt : poi_type_name;poi_type_id
  • poi.txt : poi_id;poi_name;poi_weight;poi_visible;poi_lon;poi_lat;poi_type_id
  • poi_properties.txt (probably not required): poi_id;key;value

@yipcma
Copy link
Author

yipcma commented Feb 10, 2017

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
Copy link
Contributor

pbougue commented Feb 10, 2017

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants