[mkgmap-dev] Search addresses for latin countries (help on reg exp)
From Carlos Dávila cdavilam at orangecorreo.es on Mon Aug 5 18:53:27 BST 2013
El 05/08/13 19:42, Steve Ratcliffe escribió: > Hi > >> Folks, as you know – this comes up time to time – address search is >> unpractical in most Latin countries where the street/square name usually >> starts with the type (Via, Viale,Corso, Piazza etc [IT]; Avenida, >> Calle, Plaza etc [ES]; Avenue, Boulevard, Rue, Place etc [FR] etc.) >> followed by the full name of - usually - the person naming the street. >> Nevertheless the street names sometime appears abbreviated (V.le, >> Av.da, Bld. etc), sometime the Middle name is skipped, sometime the >> work “of” is used (Avenue de Bobigny, Corso del Popolo etc) >> > The Garmin index format has a way of dealing with this problem and > earlier this year I made a branch that creates an index with the extra > information to show where the interesting part of the name starts. > > The latest version indexes every word in the name separately so you > could find 'corso del popolo' by typing 'corso' , 'del' or 'popolo'. > > So this will always work for any language, but at the cost of a > much larger index. > > It would be great if someone could try it out as it is, then > if useful, its more likely that someone would improve it. By > devising a suitable way to cut down the useless entries. > > Download it as mkgmap-mixed-index-r2662.jar at the bottom of the download > page. I knew you had worked on it, but didn't know about that branch. I'll test it later this evening. For sure working on it will be in the right direction to get a definite solution for this problem. > >> So what is a simple Mozartstrasse in Austria would look like “Via >> Wolfgang Amadeus Mozart” in Italy or “Rue Wolfgang Amadeus Mozart” in >> France but possibly also “Av.da de Mozart” etc. >> >> Now, everyone knows the street/square by its last name and it would be >> much more practical to search by it: I’d like to have a style that just >> pick the last full word of the street/square name and put it as a suffix >> followed by a comma and the original name. >> >> This would really boost address search for Latin countries – so it might >> be a default style to add to IT, FR, ES, BR, MX… etc). >> >> Could you help me on making that regular expression for the style? >> >> “str1 str2… strN” -> “strN, str1 str2… strN” >> >> Thanks! >> >> Enrico >>
- Previous message: [mkgmap-dev] Search addresses for latin countries (help on reg exp)
- Next message: [mkgmap-dev] Search addresses for latin countries (help on reg exp)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the mkgmap-dev mailing list