[mkgmap-dev] Same city name in a different province search results (Fwd: is_in:state)
From maning sambale emmanuel.sambale at gmail.com on Thu Nov 4 09:55:00 GMT 2010
We are testing several points style workaround in order get some basic address search working. In the points style we have these lines: # ------------------------------------------------------------------- # Convert 'is_in:city' or 'is_in:town' (if existing) to addr:city to become searchable in mkgmap1625 addr:city!=* & is_in:city=* {add addr:city='${is_in:city}'; delete is_in:city} addr:city!=* & is_in:town=* {add addr:city='${is_in:town}'; delete is_in:town} # Temporary HACK for none search-able 'state' tags is_in:state=* | addr:state=* | addr:province=* {add prov_name='${is_in:state}'; add prov_name='${addr:state}'; add prov_name='${addr:province}'; add is_in='${prov_name},,Philippines'; set is_in='${prov_name},,Philippines'; delete is_in:state; delete addr:state; delete addr:province;} Below are some observations in search results ---------- Forwarded message ---------- Date: Thu, Nov 4, 2010 at 5:09 PM Subject: is_in:state To: Maning Sambale <emmanuel.sambale at gmail.com> while most POI searches are working in garmin with our latest hack, im stuck with the following issue: same city names or town names, eg. San Fernando, La Union & San Fernando, Pampanga here is what i did on: assign two POI city & an amenity (fire station) name=San Fernando place=city is_in:state=La Union is_in:La Union,,Philippines name=San Fernando place=city is_in:state=Pampanga is_in:Pampanga,,Philippines name=A_Fire amenity=fire_station addr:city=San Fernando addr:state=La Union is_in:La Union,,Philippines Upon Searching:The said fire station will appear under "San Fernando, Pampanga, PH" on mapsource's Find command I don't know the order by which the is_in:state are processed, but once San Fernando is declared under Pampanga by any initial POI during compilation (it's not even in aphabetical order), it will stick to Pampanga only. Thus, any succeeding amenity with an addr:city=San Fernando, it will automatically assume that it's on Pampanga, even if I explicitly tagged it as La Union. -- cheers, maning ------------------------------------------------------ "Freedom is still the most radical idea of all" -N.Branden wiki: http://esambale.wikispaces.com/ blog: http://epsg4253.wordpress.com/ ------------------------------------------------------
- Previous message: [mkgmap-dev] Commit: r1727: Shortcomings of multipolygon tagging fixed.
- Next message: [mkgmap-dev] Apply style to relation
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the mkgmap-dev mailing list