org.openstreetmap.atlas.geography.geojson.GeoJson Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of atlas Show documentation
Show all versions of atlas Show documentation
"Library to load OSM data into an Atlas format"
package org.openstreetmap.atlas.geography.geojson;
import com.google.gson.JsonObject;
/**
* For all classes with a GeoJson representation. From the spec
* https://tools.ietf.org/html/rfc7946#section-3
*
*
* A GeoJSON object represents a Geometry, Feature, or collection of
* Features.
*
* o A GeoJSON object is a JSON object.
*
* o A GeoJSON object has a member with the name "type". The value of
* the member MUST be one of the GeoJSON types.
*
* o A GeoJSON object MAY have a "bbox" member, the value of which MUST
* be a bounding box array (see Section 5).
*
* o A GeoJSON object MAY have other members (see Section 6).
*
*
* This interface is for all classes with a geojson object representation.
*
* @author jklamer
*/
public interface GeoJson
{
JsonObject asGeoJson();
GeoJsonType getGeoJsonType();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy