MyDigitalLife

goedegep.geo

This project defines geo-coordinates and the related calculations.<br/>
The functionality is built on top of S2 Geometry Library.

class WGS84Coordinates

This class represents the coordinates of a location. Coordinate’s latitude and longitude are represented in decimal degrees. A negative longitude means West (of Greenwich) and a negative latitude means South (of the equator). There’s also an optional elevation.

A 3D coordinate is an extension of a 2D coordinate. So ideally these 3D coordinates would extend S2LatLng (of the S2 Geometry Library), but this isn’t possible as S2LatLng is final. Therefore this class uses a reference to S2LatLng for the 2D part and adds an elevation.<br/>
Where possible the functionality is built on top of the S2 Geometry Library.

class WGS84BoundingBox

This class represents a bounding box, defined by the nort and south latitudes, and the east and west longitudes.

class GeoUtil

This class provides utility methods for geo coordinates.

Source code

The source code of this project is available at goedegep.geo at GitHub.