Class GeoUtil

java.lang.Object
com.targomo.client.api.util.GeoUtil

public final class GeoUtil extends Object
Utility class with useful methods such as unit conversion
  • Method Details

    • degreeToMeters

      public Coordinate degreeToMeters(double latitude)
      Convert a latitude into x - y coordinates in meters Source: http://pordlabs.ucsd.edu/matlab/coord.htm
      Parameters:
      latitude - Latitude for conversion
      Returns:
      Converted coordinate in meters
    • metersToDegrees

      public Coordinate metersToDegrees(double meters, double latitude)
      Convert a length from meters to degrees with respect to a certain latitude
      Parameters:
      meters - Length in meters to be converted to degrees
      latitude - Latitude to be used for conversion
      Returns:
      Converted coordinate in degrees