Repository navigation
Conversation
karussell
left a comment
There was a problem hiding this comment.
Thanks, this looks good to me!
There was a problem hiding this comment.
Note that DirectoryStream was added on Android in API level 26 (Android 8.0 Oreo). 🙂
There was a problem hiding this comment.
It is not in the core module, so this should not be a problem.
There was a problem hiding this comment.
There was a problem hiding this comment.
But it seems there is no simple way to get the file name without file extension and additionally one has to create a Buffer from the Path, so I think I'll keep using the newly introduced Helper.listFiles method https://github.com/graphhopper/graphhopper/pull/1841/files#diff-4e518ca1e483cdb8f16fea150c2fb150R171 (this would also make this code here a few lines shorter due to the catch stuff)
There was a problem hiding this comment.
The correct handling of paths makes the Path API superior IMHO:
Path folder = Paths.get("a", "b", "c");
Path file = folder.resolve("d");No need to worry about OS specific stuff or if there's a missing \ or /.
|
Closing in favor of #1829 |
I've modified the spatial rules handling in order to support loading multiple geojson files. This is the first step towards solving #1808