logo separator

[mkgmap-dev] [PATCH] POI Address Support, Country Region Autofill v5

From Bernhard Heibler bernhard at heibler.de on Tue Feb 10 20:27:06 GMT 2009

Hello,

here is v5 of my patch. Changes since last release are:

- Code cleanup
- Add option --pois-addresses to switch on the filling of POI address 
information

By default the address information is no longer added to the pois. Also 
the filling is very conservative now and is not doing to much guessing. 
I think in most countries this default is useful to minimize the risk of 
wrong information. All POIs that have incomplete address info are marked 
with "Fix me address" as street name. In countries with good is_in info 
coverage I would suggest to use this options:

--pois-addresses --location-autofill=1

I think I'm pretty done for now. What do you guys think about 
integration of my stuff ?

Thanks
Berni.


> here comes version 4 of my patch. I have added a option to control the 
> new feature. By default only reliable address info is used:
>
> --location-autofill=''number''
>    Controls how country region info is gathered for cities / streets 
> and pois
>
>   0    (Default) Info of nearest city is taken. The country region  
> info is gathered by analysis of the cities is_in tags.
>          If no country region info is present the given default 
> country region is used.
>    1    Additional analysis of partial is_in info to get relations 
> between hamlets and cities
>    2    Brute force search for nearest city with info if all methods 
> before failed. WARNING:
>          Cities my end up in the wrong country/region.
>    3    Enables debug output about suspicious relations that might 
> cause wrong country region info
>
>
> Thanks
> Berni.
>
>>
>> - Reactivated map.setPoiDisplayFlags method to control format of 
>> address for POIs. Flag is read from xml config file per country
>> - Road Name POI: Replaced linear search for next city by faster tile 
>> based search I developed for Country/Region Autofill
>>
>> I have tested this stuff so far for the following locations: Paris, 
>> Switzerland, Souther Bavaria - Western Austria, North Italy and 
>> Cambridge Area UK. Sometimes some cities might end up in the wrong 
>> region / country because of missing or wrong is_in tagging.
>>
>> I think I might be able to improve this by geometrically analyzing 
>> the borderlines in the maps but I have to take a closer look into this.
>>
>> Resources/LocatorConfig.xml contains only information for a bunch of 
>> countries. You might want to add a entry to specify variants of 
>> country names used in the osm file.
>>
>> Berni.
>>> - Country Region Autofill for Marks recently added find-by-name 
>>> function
>>> - POI simple and complex house number and phone number support
>>> - POI address info is taken from "Karlsruhe address" info if available
>>> - Phone support is pretty cool if you have a garmin that support 
>>> cell phone control
>>>
>>> If no country / region / address info is given information is take 
>>> from nearest city. I have added a class that uses tiles for fast 
>>> nearest point search. In countries that have OpenGeoDB data imported 
>>> into OSM this works pretty good. In Bavaria and Austria it works  
>>> pretty good.
>>>
>>> For other countries this doesn't work so well. I have also tested it 
>>> near Cambridge UK and I it was also not so bad. Unfortunately the 
>>> is_in tag I have to us is very fuzzy. I needed some lookup tables 
>>> right now. This are hardcoded in Locator.java right now this should 
>>> be in a config file. It might help to pass your country with the 
>>> --country-name option for better County detection.
>>>
>>> If you use the .osm file as direct input for mkgmap you should be 
>>> fine. If you use polish map you have to patch osm2mp because I 
>>> needed some more fields.  Let me know If this works for you guys or 
>>> if you have further questions ... 
>>
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> mkgmap-dev mailing list
>> mkgmap-dev at lists.mkgmap.org.uk
>> http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> mkgmap-dev mailing list
> mkgmap-dev at lists.mkgmap.org.uk
> http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: mkgmap_poi_addr_R865_v5.patch
Url: http://lists.mkgmap.org.uk/pipermail/mkgmap-dev/attachments/20090210/4575fa2d/attachment.pl 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: osm2mp_poi_addr_R29_v2.patch
Url: http://lists.mkgmap.org.uk/pipermail/mkgmap-dev/attachments/20090210/4575fa2d/attachment-0001.pl 


More information about the mkgmap-dev mailing list