GeoJsonObject Class
- java.
lang. Object - com.
azure. maps. search. models. GeoJsonObject
- com.
Implements
public class GeoJsonObject
implements JsonSerializable<GeoJsonObject>
A valid `GeoJSON` object. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946\#section-3) for details.
Constructor Summary
| Constructor | Description |
|---|---|
| GeoJsonObject() |
Creates an instance of Geo |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Geo |
fromJson(JsonReader jsonReader)
Reads an instance of Geo |
| List<Double> |
getBbox()
Get the bbox property: Bounding box. |
|
Geo |
getType()
Get the type property: Specifies the `GeoJSON` type. |
|
Geo |
setBbox(List<Double> bbox)
Set the bbox property: Bounding box. |
|
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Constructor Details
GeoJsonObject
public GeoJsonObject()
Creates an instance of GeoJsonObject class.
Method Details
fromJson
public static GeoJsonObject fromJson(JsonReader jsonReader)
Reads an instance of GeoJsonObject from the JsonReader.
Parameters:
Returns:
Throws:
getBbox
public List<Double> getBbox()
Get the bbox property: Bounding box. Projection used - EPSG:3857. Please refer to [RFC 7946](https://datatracker.ietf.org/doc/html/rfc7946\#section-5) for details.
Returns:
getType
public GeoJsonObjectType getType()
Get the type property: Specifies the `GeoJSON` type. Must be one of the nine valid GeoJSON object types - Point, MultiPoint, LineString, MultiLineString, Polygon, MultiPolygon, GeometryCollection, Feature and FeatureCollection.
Returns:
setBbox
public GeoJsonObject setBbox(List<Double> bbox)
Set the bbox property: Bounding box. Projection used - EPSG:3857. Please refer to [RFC 7946](https://datatracker.ietf.org/doc/html/rfc7946\#section-5) for details.
Parameters:
Returns: