I’m trying to optimize the size of the generated files for my offline maps. Since I want to use them for my offline app on mobile devices, the size of them is a critical matter here.
I did some tests using CH only, and now with LM only (I guess LM means flexible). And the size is a bit bigger for the LM (not much more though). However, I find them a bit bigger than I wished, and I though that there might be some configuration I’m missing that could make this to be improved.
My current configuration is this one:
prepare.ch.weightings: “no” // This is to disable CH mode, since it increases the size of the generated files if I generate the grahps with CH and LM modes enabled, plus I want the alternative_route algorithm to be used, and that requires the LM mode
My main question is how could I reduce the size of the generated files?
A secondary question is what is this for? prepare.lm.landmarks: 16
I have been reading this article https://www.graphhopper.com/blog/2017/08/14/flexible-routing-15-times-faster/ and it seems that the higher the number of landmarks, the fastest the LM mode is on the device. Although this obviously increases the file size of the generated files. However, what is a great value for prepare.lm.landmarks parameter? My maps aren’t that big, they are regions of countries (Catalonia, Andalusia…in Spain, or Occitania in France, for example).
My tests on my smartphone have shown a great time for calculating the route with prepare.lm.landmarks: 16 for routes that are shorter than 50-75km (less than 2 seconds) for hike vehicle (the only vehicle I’m interested in). If I increase the distance, the performance decreases to 2-4 seconds or even more for 150-200km route length.