Package com.mapbox.geojson.shifter
Interface CoordinateShifter
-
public interface CoordinateShifterShifterManager allows the movement of all Point objects according to a custom algorithm. Once set, it will be applied to all Point objects created through this method.- Since:
- 4.2.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.List<java.lang.Double>shiftLonLat(double lon, double lat)Shifted coordinate values according to its algorithm.java.util.List<java.lang.Double>shiftLonLatAlt(double lon, double lat, double altitude)Shifted coordinate values according to its algorithm.java.util.List<java.lang.Double>unshiftPoint(Point shiftedPoint)Unshifted coordinate values according to its algorithm.java.util.List<java.lang.Double>unshiftPoint(java.util.List<java.lang.Double> shiftedCoordinates)Unshifted coordinate values according to its algorithm.
-
-
-
Method Detail
-
shiftLonLat
java.util.List<java.lang.Double> shiftLonLat(double lon, double lat)Shifted coordinate values according to its algorithm.- Parameters:
lon- unshifted longitudelat- unshifted latitude- Returns:
- shifted longitude, shifted latitude in the form of a List of Double values
- Since:
- 4.2.0
-
shiftLonLatAlt
java.util.List<java.lang.Double> shiftLonLatAlt(double lon, double lat, double altitude)Shifted coordinate values according to its algorithm.- Parameters:
lon- unshifted longitudelat- unshifted latitudealtitude- unshifted altitude- Returns:
- shifted longitude, shifted latitude, shifted altitude in the form of a List of Double values
- Since:
- 4.2.0
-
unshiftPoint
java.util.List<java.lang.Double> unshiftPoint(Point shiftedPoint)
Unshifted coordinate values according to its algorithm.- Parameters:
shiftedPoint- shifted point- Returns:
- unshifted longitude, shifted latitude, and altitude (if present) in the form of List of Double
- Since:
- 4.2.0
-
unshiftPoint
java.util.List<java.lang.Double> unshiftPoint(java.util.List<java.lang.Double> shiftedCoordinates)
Unshifted coordinate values according to its algorithm.- Parameters:
shiftedCoordinates- shifted point- Returns:
- unshifted longitude, shifted latitude, and altitude (if present) in the form of List of Double
- Since:
- 4.2.0
-
-