[PATCH v1] No address information on some POIs

I've found a bug that results in some POIs (mainly place POIs) that have no address information (so only the default country and default region). The POIs are automatically created by the add-pois-to-areas parameter and originate from multipolygons. This happens if mkgmap is started at least with the parameters --add-pois-to-areas --index --location-autofill=bounds It is important that the location-autofill parameter contains the value bounds only. In this case the add-pois-to-areas takes the middle points of all multipolygons and create a new POI with tags copied from the mp. But the mp has no address information because the LocationHook ignores all relations and multipolygons. The patch fixes that in the LocationHook. It now adds the mkgmap:admin_levelN tags to all mp. It uses the calculated middle point of the mp to query for the bounds information. WanMil
participants (1)
-
WanMil