logo separator

[mkgmap-dev] [PATCH] Bernhard's POI address autofilling code

From Mark Burton markb at ordern.com on Sun Feb 15 14:30:44 GMT 2009

Hi,

The attached nod branch patch is Bernhard's code for autofilling POI
address info. I have made a few trivial changes. It adds these options:

--pois-addresses 
	Add address / phone information to POIs. Address info is read
	according to the "Karlsruhe" tagging schema. If no address
	info is given name of next city is used. Automatic filling
	could be extended using the "location-autofill" option.

--location-autofill=''number''
	Controls how country region information is gathered for
	cities, streets and pois

	0       (Default) Info of nearest city is taken. If no country
		region info is present for next city the default
		passed default country region is used. The country
		region info is gathered by analysis of the cities
		is_in tags.

	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

I have tested it a little and didn't obviously break anything so I
think it can be committed soon. As it affects quite a few files, I
just thought I would send it out in patch format first. If you have the
time, please try it out. If no negative feedback comes back in the next
24 hours or so, I will commit it to the nod branch.

Bernhard, I noticed that gpsmapedit does not think that the pois have any
address info (e.g. city not set) - the road name pois have the expected
city suffix but the city field in the poi is not set. Is this right?

Cheers,

Mark
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bh-autofill-pois-address.patch
Type: text/x-patch
Size: 64369 bytes
Desc: not available
Url : http://lists.mkgmap.org.uk/pipermail/mkgmap-dev/attachments/20090215/a1fba5fc/attachment.bin 


More information about the mkgmap-dev mailing list