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. -- 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.
