[Geocoding] Distinguishing between exact and interpolated geocoding results

Sarah Hoffmann lonvia at denofr.de
Thu Feb 12 20:33:04 UTC 2015


Hi,

On Tue, Feb 10, 2015 at 03:53:17PM +0100, Mathias Versichele wrote:
> for a geocoding script I am developing, I would like to distinguish between
> exact (nodes or buildings with addr:housenumber tag) and interpolated
> (addr:interpolation=*) results. Looking at the json, I can't seem to find
> any way to distinguish both types of results. The address part always
> contains 'housenumber'...

It is currently not possible to distinguish between mapped and interpolated
housenumbers. The information is not even retained in the database because
interpolations are exploded to single housenumber nodes on import. Your
best bet would be to check first if the class/type is place/house (only
those can be interpolated) and then check if the coordinate returned
differs from the actual coordinate of the OSM node returned. Interpolated
house numbers have a computed coordinate but the id of the node the
interpolation was started from. It all sounds terribly hacky, I have to
admit.

Interpolations are very high on the list of things that need to be
rewritten (interpolating on the fly, basically) and that would be a good
time to reconsider how they are returned.

Sarah



More information about the Geocoding mailing list