You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How about modularize more clearly core and tools?
i.e. core for read graphs and routing and tools (or else) for read osm and create graphs.
Right now graph creation is integrated in core, so the osm read dependencies.
👍
that is the next step :) which will - at the end - move all OSM stuff into tools or even better into a new osm-import module? Otherwise e.g. web needs a dependency on tools which also contains unnecessary swing stuff. BTW: creating graphs will be always in the core just the OSM stuff should go out of it.
But e.g. the heap can't be moved up-stream as core depends on the new tools-lgpl module. Maybe we'll replace the class(es) there at some point, but for me this is not critical now. Just wanted them separated.
Just googelt a bit and a key requirement of LGPL License is to dynamically link the library. On IOS this isn't possible and on Android there are a few approaches that are more or less questionable. This is mostly because of app store distribution.
I got rid of the separate lgpl module via adapting the binary heap from apache collections to our required interface (just min heap, store keys and elements separately, including update method)
It is a rather risky change but all tests are passing. Will investigate the performance changes now.
Activity
moving LGPL code out of core, see #562
remove unused map classes, see #562
devemux86 commentedon Nov 16, 2015
How about modularize more clearly
coreandtools?i.e.
corefor read graphs and routing andtools(or else) for read osm and create graphs.Right now graph creation is integrated in
core, so the osm read dependencies.karussell commentedon Nov 16, 2015
👍
that is the next step :) which will - at the end - move all OSM stuff into
toolsor even better into a newosm-importmodule? Otherwise e.g. web needs a dependency ontoolswhich also contains unnecessary swing stuff. BTW: creating graphs will be always in thecorejust the OSM stuff should go out of it.But e.g. the heap can't be moved up-stream as
coredepends on the newtools-lgplmodule. Maybe we'll replace the class(es) there at some point, but for me this is not critical now. Just wanted them separated.karussell commentedon Nov 16, 2015
The question is also a bit what we do with the GraphHopper class which belongs to the
corebut needs the osm import and we don't want reflection.So the result will be something like:
or more explicitely:
Both would keep in mind e.g. cases like #277
Or is this too complex for the normal developer? And we should implement additionally a special GraphHopper subclass?
Or even avoid renaming and name the subclass
GraphHopperand the super class e.g.GraphHopperCore?devemux86 commentedon Nov 16, 2015
(I agree that reflection should be avoided)
Your 3rd suggestion with separate classes seems more feasible for normal developers, which separates better the osm import.
karussell commentedon Nov 16, 2015
Have to think about this - just to be sure - you meant the
GraphHopperOSMstyle? Let us move to the new #563K-Leon commentedon Jun 13, 2016
I just had a look at IOS and Android Ports of Graphhopper:
Right now there are dependencies on LGPL Code for both - Android and iOS?
This results in an incompatibility with usual linking and distribution ( Only static linking possible on IOS and so on ) or am i missing something?
Would love to give this lib a shot, but the dependence on LGPL modules makes this more or less impossible...
karussell commentedon Jun 13, 2016
The
tools-lgplis indeed not required for both. And the trove4J lib is necessary only for Android but could be replaced (#34)So nothing very problematic IMO
Why?
K-Leon commentedon Jun 13, 2016
This sounds great! I'll have a look into it
Just googelt a bit and a key requirement of LGPL License is to dynamically link the library. On IOS this isn't possible and on Android there are a few approaches that are more or less questionable. This is mostly because of app store distribution.
karussell commentedon Nov 19, 2016
I got rid of the separate lgpl module via adapting the binary heap from apache collections to our required interface (just min heap, store keys and elements separately, including update method)
It is a rather risky change but all tests are passing. Will investigate the performance changes now.
replaced primitive binary heap used for fast CH preparation with Apac…
removed tools-lgpl dependency #562
first working trove4j to hppc conversion #562
move from trove4j to hppc, fixes #34, improves #562, PR #878
[-]Make project less dependent on LGPL code[/-][+]Remove LGPL code from core[/+]karussell commentedon Dec 2, 2016
@K-Leon the core is now free from LGPL dependencies - thanks to #878. Maybe you have time to update the iOS port :) ?
K-Leon commentedon Dec 2, 2016
Wow! Thank you so much for your hard work! I'll give it a spin next week.