greetings!

as far as i know, and please correct me if i'm wrong here, you can
indeed just use a StringProperty if you wish. however, you can think
of PostalAddressProperty as more of a "classification" as far as what
*type* of string it is (sort of like metadata).

it is also useful for interfacing with other Google Data Protocol
objects, and, as you mentioned, outputting to the gd: XML namespace,
meaning that it is supported across other Google APIs and tools, i.e.,
Google Calenar, Contacts, Open Social, etc.), which *may* perform some
validation or search criteria.

and your suggestion for making individual fields, thus orderable and
sortable, then creating a full object on the fly for gd: output sounds
like a reasonable workaround. for more information on postal addresses
via Google Data, see:
http://code.google.com/apis/gdata/docs/1.0/elements.html#gdPostalAddress

best regards,
-wesley


On Mon, Dec 28, 2009 at 4:49 PM, Kelly A <[email protected]> wrote:
> If you cannot query on or sort on the individual fields of the address
> it is rather useless.  I could just store the field as text.  I assume
> that the major advantage is that you can export the item in the gd:
> XML namespace with out doing any extra work.  That being said, I would
> think exporting the address in a way that google contacts can read the
> address is far less important that being able to sort by zip code,
> state, city, etc...
>
> For those searching for an answer to the question of querying on a zip
> filed in a PostalAddressProperty or sorting on a field in a
> PostalAddressProperty, the overwhelming answer I have come across is
> you cannot.  It would seem that the best solution is to store the
> address fields in individual variables and when a request for a gd:
> address or full address is made, construct the PostalAddressProperty
> on the fly.
>
> Perhaps the PostalAddressProperty is not documented in a way that
> allows me to see the value, or all of the sample applications simply
> make no use of addresses and I am just missing the point. If others
> have any examples of the value of this object please do respond.


-- 
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
"Core Python Programming", Prentice Hall, (c)2007,2001
"Python Fundamentals", Prentice Hall, (c)2009
   http://corepython.com

wesley.j.chun :: [email protected]
developer relations :: google app engine

--

You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.


Reply via email to