com.alibaba.fastjson2.support.geo.LineString 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
package com.alibaba.fastjson2.support.geo;
import com.alibaba.fastjson2.annotation.JSONType;
/**
* @since 1.2.68
*/
@JSONType(typeName = "LineString", orders = {"type", "bbox", "coordinates"})
public class LineString
extends Geometry {
private double[][] coordinates;
public LineString() {
super("LineString");
}
public double[][] getCoordinates() {
return coordinates;
}
public void setCoordinates(double[][] coordinates) {
this.coordinates = coordinates;
}
}