Package com.mapbox.geojson.shifter
Interface CoordinateShifter
public interface CoordinateShifter
ShifterManager 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
Modifier and TypeMethodDescriptionshiftLonLat(double lon, double lat) Shifted coordinate values according to its algorithm.shiftLonLatAlt(double lon, double lat, double altitude) Shifted coordinate values according to its algorithm.unshiftPoint(Point shiftedPoint) Unshifted coordinate values according to its algorithm.unshiftPoint(List<Double> shiftedCoordinates) Unshifted coordinate values according to its algorithm.
-
Method Details
-
shiftLonLat
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
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
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
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
-