public final class LatLng extends GeneratedMessageV3 implements LatLngOrBuilder
An object that represents a latitude/longitude pair. This is expressed as a pair of doubles to represent degrees latitude and degrees longitude. Unless specified otherwise, this must conform to the <a href="http://www.unoosa.org/pdf/icg/2012/template/WGS_84.pdf">WGS84 standard</a>. Values must be within normalized ranges.
Protobuf type google.type.LatLng
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > LatLngImplements
LatLngOrBuilderStatic Fields
LATITUDE_FIELD_NUMBER
public static final int LATITUDE_FIELD_NUMBER
Type | Description |
int |
LONGITUDE_FIELD_NUMBER
public static final int LONGITUDE_FIELD_NUMBER
Type | Description |
int |
Static Methods
getDefaultInstance()
public static LatLng getDefaultInstance()
Type | Description |
LatLng |
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
newBuilder()
public static LatLng.Builder newBuilder()
Type | Description |
LatLng.Builder |
newBuilder(LatLng prototype)
public static LatLng.Builder newBuilder(LatLng prototype)
Name | Description |
prototype | LatLng |
Type | Description |
LatLng.Builder |
parseDelimitedFrom(InputStream input)
public static LatLng parseDelimitedFrom(InputStream input)
Name | Description |
input | InputStream |
Type | Description |
LatLng |
Type | Description |
IOException |
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static LatLng parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | InputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
LatLng |
Type | Description |
IOException |
parseFrom(byte[] data)
public static LatLng parseFrom(byte[] data)
Name | Description |
data | byte[] |
Type | Description |
LatLng |
Type | Description |
InvalidProtocolBufferException |
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static LatLng parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | byte[] |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
LatLng |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data)
public static LatLng parseFrom(ByteString data)
Name | Description |
data | ByteString |
Type | Description |
LatLng |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static LatLng parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | ByteString |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
LatLng |
Type | Description |
InvalidProtocolBufferException |
parseFrom(CodedInputStream input)
public static LatLng parseFrom(CodedInputStream input)
Name | Description |
input | CodedInputStream |
Type | Description |
LatLng |
Type | Description |
IOException |
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static LatLng parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
LatLng |
Type | Description |
IOException |
parseFrom(InputStream input)
public static LatLng parseFrom(InputStream input)
Name | Description |
input | InputStream |
Type | Description |
LatLng |
Type | Description |
IOException |
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static LatLng parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | InputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
LatLng |
Type | Description |
IOException |
parseFrom(ByteBuffer data)
public static LatLng parseFrom(ByteBuffer data)
Name | Description |
data | ByteBuffer |
Type | Description |
LatLng |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static LatLng parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | ByteBuffer |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
LatLng |
Type | Description |
InvalidProtocolBufferException |
parser()
public static Parser<LatLng> parser()
Type | Description |
Parser<LatLng> |
Methods
equals(Object obj)
public boolean equals(Object obj)
Name | Description |
obj | Object |
Type | Description |
boolean |
getDefaultInstanceForType()
public LatLng getDefaultInstanceForType()
Type | Description |
LatLng |
getLatitude()
public double getLatitude()
The latitude in degrees. It must be in the range [-90.0, +90.0].
double latitude = 1;
Type | Description |
double | The latitude. |
getLongitude()
public double getLongitude()
The longitude in degrees. It must be in the range [-180.0, +180.0].
double longitude = 2;
Type | Description |
double | The longitude. |
getParserForType()
public Parser<LatLng> getParserForType()
Type | Description |
Parser<LatLng> |
getSerializedSize()
public int getSerializedSize()
Type | Description |
int |
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Type | Description |
UnknownFieldSet |
hashCode()
public int hashCode()
Type | Description |
int |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
newBuilderForType()
public LatLng.Builder newBuilderForType()
Type | Description |
LatLng.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected LatLng.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Name | Description |
parent | BuilderParent |
Type | Description |
LatLng.Builder |
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Name | Description |
unused | UnusedPrivateParameter |
Type | Description |
Object |
toBuilder()
public LatLng.Builder toBuilder()
Type | Description |
LatLng.Builder |
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Name | Description |
output | CodedOutputStream |
Type | Description |
IOException |