ltog / osmi-addresses

Calculates the Address view of the OSM Inspector
Boost Software License 1.0
11 stars 4 forks source link

Duplicated execution of code for distance calculation #52

Open ltog opened 9 years ago

ltog commented 9 years ago

The code in https://github.com/ltog/osmi-addresses/blob/bcf334cda218be59e2c2b2b46a211fb26db0f11b/osmi/ConnectionLinePreprocessor.hpp#L122 and https://github.com/ltog/osmi-addresses/blob/bcf334cda218be59e2c2b2b46a211fb26db0f11b/osmi/ConnectionLinePreprocessor.hpp#L137-L159 does about the same. The OGR function however doesn't return the closes node (or point).

This duplicated calculation should be removed.

Coordinates should maybe converted to Pseudo-Mercator.