有没有一种方法可以缩写geocomplete中的状态?
我目前正在使用数据地理编码administrative_area_level_1来显示状态,但需要将其缩写-而不是全名。
发布于 2017-05-11 03:38:19
只需将short to short添加到administrative_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.https://stackoverflow.com/questions/40094199
复制相似问题