logo separator

[mkgmap-dev] addr:street and street name matching for house number searchs

From Gerd Petermann gpetermann_muenchen at hotmail.com on Mon Aug 17 09:42:23 BST 2015

Hi Carlos,

today I revieved the source and found that my statement was
no longer true, mkgmap "knows" the roads and can ignore the 
capitalization. My argument was based on a previous version in the 
housenumber2 branch.
The attached patch will solve many, but probably not all cases.
Instead of
WARN: uk.me.parabola.mkgmap.osmstyle.housenumber.HousenumberRoad  e:\osm_out_work\niedersachsen\20150810_082633\63240021.o5m: found no plausible road for address Am kleinen Esch 1D(0) http://www.openstreetmap.org/node/1601720743

it will now print
WARN: uk.me.parabola.mkgmap.osmstyle.housenumber.HousenumberGenerator  e:\osm_out_work\niedersachsen\20150810_082633\63240021.o5m: accepting match in spite of different capitalization Am Kleinen Esch 1D (http://www.openstreetmap.org/browse/way/43561741) house: http://www.openstreetmap.org/node/1601720743
and it will use the address.

I did not check special cases, e.g. when there are multiple close roads with different spelling.
Also, addr:interpolation ways with different spelling may not yet fully work,
but it should help in most cases.

A binary is here:
http://files.mkgmap.org.uk/download/275/mkgmap.jar

Gerd

> Date: Sun, 16 Aug 2015 17:20:38 +0200
> From: cdavilam at orangecorreo.es
> To: mkgmap-dev at lists.mkgmap.org.uk
> Subject: Re: [mkgmap-dev] addr:street and street name matching for house number searchs
> 
> OK, I see, not an easy matter. I will then have to deal with the nearly 
> 90.000 lines of this type in my log for Spain;-)
> 
> El 13/08/15 a las 08:10, Gerd Petermann escribió:
> > Hi Carlos,
> >
> > not sure what to do here. See first this discussion:
> > http://gis.19327.n5.nabble.com/address-search-and-case-significance-of-street-name-tp5840995.html
> >
> > My problem reg. suppression of certain messages is that current code 
> > in mkgmap
> > is not able to find a nearly matching road name, so it has no way to say
> > "differs only in capitalization" or maybe "differs only slightly",
> > it just doesn't find a road.
> >
> > Gerd
> >
> > > Date: Wed, 12 Aug 2015 13:54:51 +0200
> > > From: cdavilam at orangecorreo.es
> > > To: mkgmap-dev at lists.mkgmap.org.uk
> > > Subject: [mkgmap-dev] addr:street and street name matching for house 
> > number searchs
> > >
> > > HousenumberRoad throws a warning when addr:street from a node and name
> > > of the street the node is next to are not equal, even if they differ
> > > only in the capitalization. See for example nodes
> > > http://www.openstreetmap.org/node/2486105470 and
> > > http://www.openstreetmap.org/node/2486105464 (addr:street=carrer del
> > > Montseny) which are next to way 
> > http://www.openstreetmap.org/way/8590864
> > > with name=Carrer del Montseny. One of the names is more correct than 
> > the
> > > other but, having in mind that Garmin changes capitalization
> > > arbitrarily, I'm not sure if we should keep these warnings.
> > > Another case to discuss is when one of addr:street or way name contains
> > > special letters and the other one not (eg. Asturies vs Astúries). Here
> > > one of the names is wrongly written and should be corrected in OSM 
> > data,
> > > so may be worth keeping the warning.
> 
> -- 
> Por favor, no me envíe documentos con extensiones .doc, .docx, .xls, .xlsx, .ppt, .pptx, .mdb, mdbx
> Instale LibreOffice desde http://es.libreoffice.org/descarga/
> LibreOffice es libre: se puede copiar, modificar y redistribuir libremente. Gratis y totalmente legal.
> LibreOffice está en continuo desarrollo y no tendrá que pagar por las nuevas versiones.
> 
> _______________________________________________
> mkgmap-dev mailing list
> mkgmap-dev at lists.mkgmap.org.uk
> http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.mkgmap.org.uk/pipermail/mkgmap-dev/attachments/20150817/3bd54bd4/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: housenumber-capitalization-v1.patch
Type: application/octet-stream
Size: 904 bytes
Desc: not available
URL: <http://www.mkgmap.org.uk/pipermail/mkgmap-dev/attachments/20150817/3bd54bd4/attachment.obj>


More information about the mkgmap-dev mailing list