类 LatLngAdapter
java.lang.Object
com.google.gson.TypeAdapter<LatLng>
ai.nextbillion.maps.internal.LatLngAdapter
public class LatLngAdapter extends com.google.gson.TypeAdapter<LatLng>
Handle conversion from varying types of latitude and longitude representations.
-
构造器概要
构造器 构造器 说明 LatLngAdapter() -
方法概要
-
构造器详细资料
-
LatLngAdapter
public LatLngAdapter()
-
-
方法详细资料
-
read
Reads in a JSON object and try to create a LatLng in one of the following formats.{ "lat" : -33.8353684, "lng" : 140.8527069 } { "latitude": -33.865257570508334, "longitude": 151.19287000481452 }- 指定者:
read在类中com.google.gson.TypeAdapter<LatLng>- 抛出:
java.io.IOException
-
write
Not supported.- 指定者:
write在类中com.google.gson.TypeAdapter<LatLng>- 抛出:
java.io.IOException
-