【问题标题】:Why use PostalAddress property in Gql? [duplicate]为什么在 Gql 中使用 PostalAddress 属性? [复制]
【发布时间】:2012-08-27 20:28:05
【问题描述】:

可能重复:
Why Email, Username, PostalCode, etc as entities in GAE Datastore

App Engine 数据存储有这个属性“PostalAddress”,但使用它的目的是什么?

在文档中:https://developers.google.com/appengine/docs/python/datastore/typesandpropertyclasses#PostalAddress

我有想要存储的地址,我在想如果我想获取城市或邮政编码,如果我将它们存储在不同的列字段中,我就可以轻松地查询它们。或者有没有一种方法可以从邮政地址属性中提取邮政编码或城市/州或街道线,而无需对其使用正则表达式...

有人知道如何使用这个属性吗?

【问题讨论】:

    标签: google-app-engine gql gqlquery


    【解决方案1】:

    它基本上只是一个字符串属性。不执行验证或假定任何类型的结构。他们可能使用它来支持 gd:postalAddress 元素。

    https://developers.google.com/gdata/docs/1.0/elements?hl=el#gdPostalAddress

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-07-10
      • 1970-01-01
      • 2011-05-03
      • 2021-08-14
      • 1970-01-01
      • 2016-10-16
      相关资源
      最近更新 更多