Re: [mkgmap-dev] how to make address search aware of the Canadian provinces?

2012-05-28 Thread WanMil
> Hi WanMil,
>
> On Thu, May 24, 2012 at 8:52 PM, WanMil  wrote:
>>
>> your approach is correct.
>> But I don't know which field are used by the builtin map. So maybe it is
>> not possible to have the same functionality with mkgmap generated maps.
>
> Ok, good to know. Thanks.
>
>> Can you please what information/address is displayed if you select a POI
>> on your mkgmap generated map. Is the province name displayed? If not
>> then you should check the log file if mkgmap really finds your bounds
>> directory.
>
> On the mkgmap generated map of Canada, POIs have the city and province
> name displayed. If the POI has full address information in OSM, then
> the full address is displayed. I think the bounds are being set
> correctly.
>
> One thing I noticed is that the built-in map of Canada uses the
> province abbreviation whereas the mkgmap generated map uses the full
> province name. For instance, the built-in map uses ON for the province
> while the map generated with mkmap uses Ontario. Could this somehow be
> causing the problem?

Maybe that's a hint how you can solve that yourself.
Instead of assigning the country (CAN - Canada) and a region (Ontario) 
you  might assign the province as country: ONT - Canada Ontario .
To do this you must add your provinces to the LocationHook.xml file and 
add the country redefinition rule
mkgmap:country=CAN && mkgmap:admin_level4=* { set 
mkgmap:country='${mkgmap:admin_level=4}' }


>
> In any case, I would like to use the province abbreviations instead of
> the full province names. Is there a setting that I can use in mkgmap
> to get this behaviour?

In case there is a tag with the short name add this tag to the 
name-tag-list option.

WanMil

>
> Thanks, Ben
> ___
> mkgmap-dev mailing list
> mkgmap-dev@lists.mkgmap.org.uk
> http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

___
mkgmap-dev mailing list
mkgmap-dev@lists.mkgmap.org.uk
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev


Re: [mkgmap-dev] how to make address search aware of the Canadian provinces?

2012-05-27 Thread Ben Konrath
Hi WanMil,

On Thu, May 24, 2012 at 8:52 PM, WanMil  wrote:
>
> your approach is correct.
> But I don't know which field are used by the builtin map. So maybe it is
> not possible to have the same functionality with mkgmap generated maps.

Ok, good to know. Thanks.

> Can you please what information/address is displayed if you select a POI
> on your mkgmap generated map. Is the province name displayed? If not
> then you should check the log file if mkgmap really finds your bounds
> directory.

On the mkgmap generated map of Canada, POIs have the city and province
name displayed. If the POI has full address information in OSM, then
the full address is displayed. I think the bounds are being set
correctly.

One thing I noticed is that the built-in map of Canada uses the
province abbreviation whereas the mkgmap generated map uses the full
province name. For instance, the built-in map uses ON for the province
while the map generated with mkmap uses Ontario. Could this somehow be
causing the problem?

In any case, I would like to use the province abbreviations instead of
the full province names. Is there a setting that I can use in mkgmap
to get this behaviour?

Thanks, Ben
___
mkgmap-dev mailing list
mkgmap-dev@lists.mkgmap.org.uk
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev


Re: [mkgmap-dev] how to make address search aware of the Canadian provinces?

2012-05-24 Thread WanMil
Hi Ben,

your approach is correct.
But I don't know which field are used by the builtin map. So maybe it is 
not possible to have the same functionality with mkgmap generated maps.

Can you please what information/address is displayed if you select a POI 
on your mkgmap generated map. Is the province name displayed? If not 
then you should check the log file if mkgmap really finds your bounds 
directory.

WanMil


> Hi,
>
> I'm generating a map of Canada with this command:
>
> java -jar mkgmap/dist/mkgmap.jar --latin1 --gmapsupp --min-size-polygon \
>--series-name="OSM Canada" --family-name="OpenStreetMap Canada 08 May 
> 2012" \
>--index --location-autofill=bounds,is_in,nearest --bounds=bounds
> --add-pois-to-areas \
>--pois-to-areas-placement="entrance=main;entrance=yes;building=entrance" \
>--check-roundabout-flares --route --remove-short-arcs
> --drive-on-right --check-roundabouts \
>--family-id=34244 --product-id=1 --road-name-pois \
>--generate-sea="extend-sea-sectors,multipolygon,floodblocker"
> --make-all-cycleways \
>-c template.args --description="OSM Canada"
>
> I'd like to know if it's possible to get the address search to be
> aware of the provinces. For example, on the built-in map of my Nuvi
> 255w, the GPS "knows" that I'm in Ontario and gives me the option to
> change the 'state/country'. Here's a screenshot that shows this
> behaviour:
>
> http://bagu.org/scratch/nuvi-255w-address-search-builtin-map.bmp
>
> With the mkgmap generated maps, the GPS only "knows" that I'm in
> Canada. Here's a screenshot showing this behaviour:
>
> http://bagu.org/scratch/nuvi-255w-address-search-mkgmap-osm-map.bmp
>
> I've added these lines to the points, lines and polygons style files
> to setup the Canadian boundaries:
>
> # Canada = CAN
> mkgmap:country=CAN&  mkgmap:region!=*&  mkgmap:admin_level4=* { set
> mkgmap:region='${mkgmap:admin_level4}' }
> mkgmap:country=CAN&  mkgmap:city!=*&  mkgmap:admin_level8=* { set
> mkgmap:city='${mkgmap:admin_level8}' }
>
> Side note: I can make a patch to the default style with these lines if
> people are interested in having this included with mkgmap.
>
> Does anybody know how I can get the GPS to be aware of the province
> with my mkgmap generated map?
>
> Thanks, Ben
> ___
> mkgmap-dev mailing list
> mkgmap-dev@lists.mkgmap.org.uk
> http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

___
mkgmap-dev mailing list
mkgmap-dev@lists.mkgmap.org.uk
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev


[mkgmap-dev] how to make address search aware of the Canadian provinces?

2012-05-22 Thread Ben Konrath
Hi,

I'm generating a map of Canada with this command:

java -jar mkgmap/dist/mkgmap.jar --latin1 --gmapsupp --min-size-polygon \
  --series-name="OSM Canada" --family-name="OpenStreetMap Canada 08 May 2012" \
  --index --location-autofill=bounds,is_in,nearest --bounds=bounds
--add-pois-to-areas \
  --pois-to-areas-placement="entrance=main;entrance=yes;building=entrance" \
  --check-roundabout-flares --route --remove-short-arcs
--drive-on-right --check-roundabouts \
  --family-id=34244 --product-id=1 --road-name-pois \
  --generate-sea="extend-sea-sectors,multipolygon,floodblocker"
--make-all-cycleways \
  -c template.args --description="OSM Canada"

I'd like to know if it's possible to get the address search to be
aware of the provinces. For example, on the built-in map of my Nuvi
255w, the GPS "knows" that I'm in Ontario and gives me the option to
change the 'state/country'. Here's a screenshot that shows this
behaviour:

http://bagu.org/scratch/nuvi-255w-address-search-builtin-map.bmp

With the mkgmap generated maps, the GPS only "knows" that I'm in
Canada. Here's a screenshot showing this behaviour:

http://bagu.org/scratch/nuvi-255w-address-search-mkgmap-osm-map.bmp

I've added these lines to the points, lines and polygons style files
to setup the Canadian boundaries:

# Canada = CAN
mkgmap:country=CAN & mkgmap:region!=* & mkgmap:admin_level4=* { set
mkgmap:region='${mkgmap:admin_level4}' }
mkgmap:country=CAN & mkgmap:city!=* & mkgmap:admin_level8=* { set
mkgmap:city='${mkgmap:admin_level8}' }

Side note: I can make a patch to the default style with these lines if
people are interested in having this included with mkgmap.

Does anybody know how I can get the GPS to be aware of the province
with my mkgmap generated map?

Thanks, Ben
___
mkgmap-dev mailing list
mkgmap-dev@lists.mkgmap.org.uk
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev