Currently I am trying to see if graphhopper has a way to read a XML OSM in-memory (Java String or something like that) instead of using a file path. Want to host the OSM file in a AWS S3 bucket in which case I can’t provide a path but only a Java object
This is currently not possible. There was a community member who shared some code some years ago:
This is not supported currently but should be possible with only a few changes. Basically you just need to replace this code:
where the file is read and the different ReaderElement objects are passed to ReaderElementHandler with some code that reads your in-memory XML, creates these objects and passes them to the handler.