Reading path geometry

Hello,

I’m using the Engine in my own Java project. IÄm calculating a route, get the best one, get the pointlist and get of the route the path details with the edge id. In general I would like to fetch the edge id (internal or osm id) and the path geometry of each egde. My goal is that I need to resample the edge into cells (based on a given cell size / length) and for each cell I need to know which edge id and GPS point it is referenced.
The cell size is static and known by reading the OSM data, so maybe it is possible to append the sampling step by reading the OSM file?

Thanks a lot

The path details should give you the geometry already: Routing API: Using Path Details - GraphHopper Directions API