Looks good to me.
There is one crude thing left but hopefully you can fix that too.
I have modified the testcase (attached). It contains now one street with
each permutation of
name=Street1 / Street2
city=City1 / City2
region=Region / Region2
Performing some searches gives the following results:
* Searching for street only gives the expected 4 results
* Searching for a street/city combination gives the expected 2 results
* Searching for a street/region combination gives the expected 2 results
* Adding a country to the searches is working too (might have to add
another permutation with a 2nd country)
* Searching for street, city and region gives one expected result only
when searching for Street1/City2/Region1 or Street2/City2/Region1. All
other combinations return two results with both regions.
WanMil
Hi
Did something happen to the patch file, or am I missing something?
Yes something weird happened to the patch file. There was a change to
Mdr20. Trying again...
..Steve
_______________________________________________
mkgmap-dev mailing list
mkgmap-dev@lists.mkgmap.org.uk
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
<?xml version='1.0' encoding='UTF-8'?>
<osm version='0.6' generator='JOSM'>
<node id='-96' action='modify' timestamp='2011-05-30T16:58:30Z' visible='true' lat='54.322445619552795' lon='-2.2039794759847755' />
<node id='-95' action='modify' timestamp='2011-05-30T16:58:30Z' visible='true' lat='54.25569901226977' lon='-2.2333519200251044' />
<node id='-94' action='modify' timestamp='2011-05-30T16:58:30Z' visible='true' lat='54.32210855075907' lon='-2.1151179569215675' />
<node id='-93' action='modify' timestamp='2011-05-30T16:58:30Z' visible='true' lat='54.32197324002967' lon='-2.082577008575216' />
<node id='-92' action='modify' timestamp='2011-05-30T16:58:30Z' visible='true' lat='54.25556348319615' lon='-2.200810971678753' />
<node id='-91' action='modify' timestamp='2011-05-30T16:58:30Z' visible='true' lat='54.255090335987454' lon='-2.079408504269193' />
<node id='-90' action='modify' timestamp='2011-05-30T16:58:30Z' visible='true' lat='54.25522586661604' lon='-2.111949452615544' />
<node id='-89' action='modify' timestamp='2011-05-30T16:58:30Z' visible='true' lat='54.322580928728435' lon='-2.2365204243311267' />
<node id='-66' action='modify' timestamp='2011-05-30T16:58:30Z' visible='true' lat='54.42745621451849' lon='-2.0903354576291133' />
<node id='-65' action='modify' timestamp='2011-05-30T16:58:30Z' visible='true' lat='54.36088003187383' lon='-2.1197079016694413' />
<node id='-64' action='modify' timestamp='2011-05-30T16:58:30Z' visible='true' lat='54.42759117806388' lon='-2.122876405975464' />
<node id='-63' action='modify' timestamp='2011-05-30T16:58:30Z' visible='true' lat='54.36074484870309' lon='-2.08716695332309' />
<node id='-46' action='modify' timestamp='2011-05-30T16:58:30Z' visible='true' lat='54.36121678290881' lon='-2.2085694207326507' />
<node id='-45' action='modify' timestamp='2011-05-30T16:58:30Z' visible='true' lat='54.42792738199464' lon='-2.211737925038673' />
<node id='-16' action='modify' timestamp='2011-05-30T16:58:30Z' visible='true' lat='54.428062343988195' lon='-2.244278873385024' />
<node id='-14' action='modify' timestamp='2011-05-30T16:58:30Z' visible='true' lat='54.36135196452652' lon='-2.2411103690790015' />
<way id='-100' action='modify' timestamp='2011-05-30T16:58:30Z' visible='true'>
<nd ref='-96' />
<nd ref='-92' />
<tag k='highway' v='residential' />
<tag k='mkgmap:city' v='City1' />
<tag k='mkgmap:country' v='GBR' />
<tag k='mkgmap:region' v='Region2' />
<tag k='name' v='Street2' />
</way>
<way id='-99' action='modify' timestamp='2011-05-30T16:58:30Z' visible='true'>
<nd ref='-89' />
<nd ref='-95' />
<tag k='highway' v='residential' />
<tag k='mkgmap:city' v='City1' />
<tag k='mkgmap:country' v='GBR' />
<tag k='mkgmap:region' v='Region2' />
<tag k='name' v='Street1' />
</way>
<way id='-98' action='modify' timestamp='2011-05-30T16:58:30Z' visible='true'>
<nd ref='-93' />
<nd ref='-91' />
<tag k='highway' v='residential' />
<tag k='mkgmap:city' v='City2' />
<tag k='mkgmap:country' v='GBR' />
<tag k='mkgmap:region' v='Region2' />
<tag k='name' v='Street2' />
</way>
<way id='-97' action='modify' timestamp='2011-05-30T16:58:30Z' visible='true'>
<nd ref='-94' />
<nd ref='-90' />
<tag k='highway' v='residential' />
<tag k='mkgmap:city' v='City2' />
<tag k='mkgmap:country' v='GBR' />
<tag k='mkgmap:region' v='Region2' />
<tag k='name' v='Street1' />
</way>
<way id='-68' action='modify' timestamp='2011-05-30T16:58:30Z' visible='true'>
<nd ref='-66' />
<nd ref='-63' />
<tag k='highway' v='residential' />
<tag k='mkgmap:city' v='City2' />
<tag k='mkgmap:country' v='GBR' />
<tag k='mkgmap:region' v='Region1' />
<tag k='name' v='Street2' />
</way>
<way id='-67' action='modify' timestamp='2011-05-30T16:58:30Z' visible='true'>
<nd ref='-64' />
<nd ref='-65' />
<tag k='highway' v='residential' />
<tag k='mkgmap:city' v='City2' />
<tag k='mkgmap:country' v='GBR' />
<tag k='mkgmap:region' v='Region1' />
<tag k='name' v='Street1' />
</way>
<way id='-44' action='modify' timestamp='2011-05-30T16:58:30Z' visible='true'>
<nd ref='-45' />
<nd ref='-46' />
<tag k='highway' v='residential' />
<tag k='mkgmap:city' v='City1' />
<tag k='mkgmap:country' v='GBR' />
<tag k='mkgmap:region' v='Region1' />
<tag k='name' v='Street2' />
</way>
<way id='-20' action='modify' timestamp='2011-05-30T16:58:30Z' visible='true'>
<nd ref='-16' />
<nd ref='-14' />
<tag k='highway' v='residential' />
<tag k='mkgmap:city' v='City1' />
<tag k='mkgmap:country' v='GBR' />
<tag k='mkgmap:region' v='Region1' />
<tag k='name' v='Street1' />
</way>
</osm>
_______________________________________________
mkgmap-dev mailing list
mkgmap-dev@lists.mkgmap.org.uk
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev