public class CarmenGeometryDeserializer
extends java.lang.Object
implements com.google.gson.JsonDeserializer<com.mapbox.services.commons.geojson.Geometry>
| Constructor and Description |
|---|
CarmenGeometryDeserializer() |
| Modifier and Type | Method and Description |
|---|---|
com.mapbox.services.commons.geojson.Geometry |
deserialize(com.google.gson.JsonElement json,
java.lang.reflect.Type typeOfT,
com.google.gson.JsonDeserializationContext context)
A custom deserializer for Gson, used for the Geocoder.
|
public com.mapbox.services.commons.geojson.Geometry deserialize(com.google.gson.JsonElement json,
java.lang.reflect.Type typeOfT,
com.google.gson.JsonDeserializationContext context)
throws com.google.gson.JsonParseException
deserialize in interface com.google.gson.JsonDeserializer<com.mapbox.services.commons.geojson.Geometry>json - The Json data being deserialized.typeOfT - The type of the Object to deserialize to.context - Context for deserialization.com.google.gson.JsonParseException - This exception is raised if there is a serious issue that occurs
during parsing of a Json string.