cardomjar
2010-09-22 14:33:03 UTC
Hello,
¿Is there any way to split an Address?.
I mean, suppose you have the formated address field (with street name.
zipcode, city, state...) and you want to know the value of single address
element.
Example. Imagine the formated address is:
LUIS CHAMIZO, 16
06470 GUAREÑA
BADAJOZ
España
If you want to know the zip Code, it should return '06470'
If you want to Know the city, it should retun 'GUAREÑA'
I think the method should receive, at least, three parameters. Something like:
static str getAddress(Addressing _addressing, //
Formated address
AddressElement _addressElement, //
Element to retrieve
AddressFormatId _formatId) // ¿Where must we
look for?
.....
Any idea?
Thanks in advance
Carlos
¿Is there any way to split an Address?.
I mean, suppose you have the formated address field (with street name.
zipcode, city, state...) and you want to know the value of single address
element.
Example. Imagine the formated address is:
LUIS CHAMIZO, 16
06470 GUAREÑA
BADAJOZ
España
If you want to know the zip Code, it should return '06470'
If you want to Know the city, it should retun 'GUAREÑA'
I think the method should receive, at least, three parameters. Something like:
static str getAddress(Addressing _addressing, //
Formated address
AddressElement _addressElement, //
Element to retrieve
AddressFormatId _formatId) // ¿Where must we
look for?
.....
Any idea?
Thanks in advance
Carlos