com.alibaba.fastjson2.support.geo.Feature Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of fastjson2-extension Show documentation
Show all versions of fastjson2-extension Show documentation
Fastjson is a JSON processor (JSON parser + JSON generator) written in Java
The newest version!
package com.alibaba.fastjson2.support.geo;
import com.alibaba.fastjson2.annotation.JSONType;
import java.util.LinkedHashMap;
import java.util.Map;
/**
* @since 1.2.68
*/
@JSONType(typeName = "Feature", orders = {"type", "id", "bbox", "coordinates", "properties"})
public class Feature
extends Geometry {
private String id;
private Geometry geometry;
private Map properties = new LinkedHashMap();
public Feature() {
super("Feature");
}
public Geometry getGeometry() {
return geometry;
}
public void setGeometry(Geometry geometry) {
this.geometry = geometry;
}
public Map getProperties() {
return properties;
}
public void setProperties(Map properties) {
this.properties = properties;
}
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
}