Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有办法在 geocomplete 中缩写状态?
我目前正在使用数据地理代码管理区域级别 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.