In a custom field (target), it needs to be stored as a JSON format, the final definition is based on the geoJSON format
1. In a custom field (location), it needs to be stored as a JSON format. UI design. as shown in Figure 1
2. In the interface design, the request parameter is longitude and latitude. Since the name of the location needs to be displayed in the details interface, the location name needs to be obtained based on the longitude and latitude. Then store it as a JSON format.
3. The final definition is based on the GeoJSON format. The format is as follows
{
"type": "Feature", // GeoJSON 对象的类型,表示这是一个地理要素对象
"geometry": { // (仅用于 Feature 类型)表示地理对象的几何信息
"type": "Point", // GeoJSON 对象的类型,表示一个点
"coordinates": [116.4074, 39.9042] // 表示地理坐标的数组,[经度,纬度]
},
"properties": { // 包含与地理对象相关的属性数据
"name": "Beijing" // 名称
}
}
4. Put JSON data onhttps://geojson.io/The verification is passed. It can be accurately positioned to Beijing, in line with expectations. as shown in Figure 2

