Routing through POI's


#1

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.


#2

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.


#4

Hey,
So can I use mapsforge library to add the POI’s and will those POI’s support offline routing?

Thankyou.


#5

Hey,
So can I use mapsforge library to add the POI’s and will those POI’s support offline routing?

Thankyou.


#6

The maps are not connected with the routing:


#7

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.