Hello,
I am quiet new to graphhopper and now I wanted to know whether we can add POI’s (through JSON or GeoJSON or KML or any format to our osm) and give the option of routing through those points to the users i.e start and end Geopoints.And besides,does this work offline too?
I am presently working on Android.
Thanks.
Hi,
It works offline on Android, yes.
There is currently no “out of the box” way.
You can have a look into this example which uses these changes (which is not yet in master but probably will in a few days).
So basically you parse the JSON file, look up the GraphHopper edge for the POI location and then store the POI ID or similar into the edge.
Hey,
So can I use mapsforge library to add the POI’s and will those POI’s support offline routing?
Thankyou.
Hey,
So can I use mapsforge library to add the POI’s and will those POI’s support offline routing?
Thankyou.
The maps are not connected with the routing:
-
Maps: can download a map file or create a new one with extra POI using the map-writer.
-
Routing: if have the coordinates of the POI can perform routing, better study Android sample and routing docs.
Hey.
So now there is .poi file.How should I add it to my graphhopper maps?
Is there a method to add it to the -gh folder.?Or should I be using SQLite Bindings?
Thankyou.