GraphHopper.com | Forum | GitHub | Maps | Blog

Size of a custom FlagEncoder


#1

I wrote a FlagEncoder that uses 2 bytes to encode custom medatata to an edge. I read in the documentation that 64 bits is the limit for a FlagEncoder, what should I do to overcome this limitation?

More in details, I would need to attach to an edge a set of custom weights and additional data that cannot encoded easily in 64 bit.

Thanks,
Rossano


#2

You can use some external array (one entry per edge). It can be done but it is not easy and so we created very recently a branch where this is just a config change (you use 12 instead 8 bytes): https://github.com/graphhopper/graphhopper/pull/1447