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

com.what3words.javawrapper.response.GridSectionGeoJson Maven / Gradle / Ivy

The newest version!
package com.what3words.javawrapper.response;

import com.google.gson.GsonBuilder;
import com.google.gson.JsonArray;

public class GridSectionGeoJson extends Response {
    private JsonArray features = null;
    private String type = null;

    public GridSectionGeoJson() {
    }

    public GridSectionGeoJson(JsonArray features, String type) {
        this.features = features;
        this.type = type;
    }

    public JsonArray getFeatures() {
        return features;
    }

    public String getType() {
        return type;
    }

    public String toGeoJsonString() {
        return new GsonBuilder().create().toJson(this);
    }

    public String toString() {
        return new GsonBuilder().setPrettyPrinting().create().toJson(this);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy