poi-address via style

Is there a way how to add a poi address via the style file. The automatic generated poi address has the advantage, that the address is separated from the name, but has the disadvantage, that the country is not printed, a line feed is missing before the phone number, and it's not configurable. Can I switch this address generation of (e.g. with --no-poi-address) and add my own address code in the style (e.g. set mkgmap:address=${addr:street} ...) At the moment --no-poi-address is giving an error message Invalid option: 'poi-address' Walter

Hi
At the moment --no-poi-address is giving an error message Invalid option: 'poi-address'
I've just committed a fix to make this option work again. The option is now called --poi-address which is on by default. To disable it use --no-poi-address. This has exactly the same effect as before, but the name has to be switched round, because --no- can now be used with any option so an option can't start with no- any more. ..Steve

Hi Steve,
At the moment --no-poi-address is giving an error message Invalid option: 'poi-address'
I've just committed a fix to make this option work again.
Thanks for turning this feature on again.
The option is now called --poi-address which is on by default. To disable it use --no-poi-address.
This has exactly the same effect as before, but the name has to be switched round, because --no- can now be used with any option so an option can't start with no- any more.
..Steve
I have 2 more questions regarding poi-address: I think there is a line feed missing before the phone number? Maybe it's simply forgotten to add it in the code. Is there a way how to customize the printed address? The best would be, if it could be added via style file somehow. Appending the address text to the name does not work, because such long names are not shown in full lenght on Garmin devices. Walter

Hi On 06/03/13 20:16, Walter Schlögl wrote:
I think there is a line feed missing before the phone number? Maybe it's simply forgotten to add it in the code.
Is there a way how to customize the printed address?
The address information is stored as a record of separate fields for house number, street, phone etc. The way it is displayed by the device is entirely up to it and we have no control over that (as always, as far as I know). The style controls what goes into the individual fields and so you have control over that. ..Steve

Hi Steve, you wrote: The style controls what goes into the individual fields I am looking for the field that is used as address field by mkgmap. With the option poi-address the POI looks like this on my Oregon. NAME Street Number Town This looks very nice because the name is only the name and the address is a separate field and a LF places the town in the next line. Now I want to customize it. With the option no-poi-address and the style command set name='${name} ${addr:street} ${addr:housenumber} ${addr:city}' the POI looks like this: NAME Street Number Town This does not look so nice any more, because the address is now part of the name. I am looking for a style command like this. set name='${name}' set name2='${addr:street} ${addr:housenumber} <LF> ${addr:city}' mkgmap is able to place the address in a separate field. But this feature seems to be only used by the poi-address code. Walter ----- Original Message ----- From: "Steve Ratcliffe" <steve@parabola.me.uk> To: "Development list for mkgmap" <mkgmap-dev@lists.mkgmap.org.uk> Sent: Thursday, March 14, 2013 10:32 PM Subject: Re: [mkgmap-dev] poi-address via style Hi On 06/03/13 20:16, Walter Schlögl wrote:
I think there is a line feed missing before the phone number? Maybe it's simply forgotten to add it in the code.
Is there a way how to customize the printed address?
The address information is stored as a record of separate fields for house number, street, phone etc. The way it is displayed by the device is entirely up to it and we have no control over that (as always, as far as I know). The style controls what goes into the individual fields and so you have control over that. ..Steve _______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://lists.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

Hi
I am looking for a style command like this.
set name='${name}' set name2='${addr:street} ${addr:housenumber} <LF> ${addr:city}'
mkgmap is able to place the address in a separate field. But this feature seems to be only used by the poi-address code.
The other fields are accessed by setting mkgmap:housenumber mkgmap:street mkgmap:city mkgmap:region mkgmap:country mkgmap:phone mkgmap:postal_code Normally these are just set to the corresponding addr:* value, but you can experiment trying to set them to different things. ..Steve
participants (2)
-
Steve Ratcliffe
-
Walter Schlögl