Geocomplete 中的缩写状态

Posted

技术标签:

【中文标题】Geocomplete 中的缩写状态【英文标题】:Abbreviate states in Geocomplete 【发布时间】:2016-10-17 19:29:14 【问题描述】:

有没有办法在 geocomplete 中缩写状态?

我目前正在使用数据地理代码管理区域级别 1 来显示状态,但需要缩写 - 不是全名。

【问题讨论】:

【参考方案1】:

您只需将short to short 添加到administrator_area_level_1 的末尾,如下所示:

    <label>State</label>
    <input name="administrative_area_level_1_short" type="text" value="">


I tried it for Colorado and it gave CO. I think this is what you wanted. All the best.

【讨论】:

以上是关于Geocomplete 中的缩写状态的主要内容,如果未能解决你的问题,请参考以下文章