Class GeoPoint (2.4.0)

GeoPoint(latitude, longitude)

Simple container for a geo point value.

Parameters

NameDescription
latitude float

Latitude of a point.

longitude float

Longitude of a point.

Inheritance

builtins.object > GeoPoint

Methods

__eq__

__eq__(other)

Compare two geo points for equality.

Returns
TypeDescription
boolTrue if the points compare equal, else False.

__ne__

__ne__(other)

Compare two geo points for inequality.

Returns
TypeDescription
boolFalse if the points compare equal, else True.

to_protobuf

to_protobuf()

Convert the current object to protobuf.

Returns
TypeDescription
`google.type.latlng_pb2.LatLng`.The current point as a protobuf.