All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.alibaba.fastjson2.support.geo.Feature Maven / Gradle / Ivy

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;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy