Closed danlarkin closed 4 years ago
Thanks! These changes are looking good.
I am just wondering why you included the decimicro_
* methods. Is there are common application for this specific precision to warrant another method?
OSM PBFs usually (always?) include only enough lat/lon precision to fill 32 bits, so it's just the most compact lossless representation of the stored data. And for plenty of calculations there's no reason to take up 4 extra bytes with zeros.
Thanks for your quick response.
That's a good reason :)
This adds
nano_lat/lon
anddecimicro_lat/lon
methods toNode
andDenseNode
for those situations where the cast to a floating point number is unnecessary.