Interface Projection

com.yandex.mapkit.geometry.geo

public interface Projection

Makes two conversions: world->XY and XY->world, where XY are tile indexes.

There are two main derived classes: spherical mercator (google, osm) and wgs84 mercator (yandex).

Methods

XYPoint worldToXY(@NonNull Point geoPoint, int zoom)

Converts the world coordinates to a flat world position.

Point xyToWorld(@NonNull XYPoint xyPoint, int zoom)

Converts the flat world position to world coordinates.

Method Detail

worldToXY

public XYPoint worldToXY (@NonNull Point geoPoint, int zoom)

Converts the world coordinates to a flat world position.

xyToWorld

public Point xyToWorld (@NonNull XYPoint xyPoint, int zoom)

Converts the flat world position to world coordinates.