How can i read routing information from database directly

Hello
my routing information is store in postgre sql, i convert this data to shape format,
and then by using shape reader i create the graph and do routing.
but because of creating the shape file is very slow, Can i read the data directly from the database?
how can i write the reader for database?
Best Regards

You will have to create a GraphHopperStorage object and fill this with edges, edge properties and node information as we do e.g. in the shapefile reader or OSMReader.

Thanks for your reply.
I have to create a data store for my database information?
can you guide me more how can i write the reader for postgresql database?

Best Regards

Is there a way to connecting GraphHopper with Postgresql? can you give me a reference?

Powered by Discourse