All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.mapbox.mapboxsdk.constants.GeoConstants Maven / Gradle / Ivy

There is a newer version: 9.2.1
Show newest version
package com.mapbox.mapboxsdk.constants;

/**
 * GeoConstants exposes constants for doing locational calculations on Earth
 */
public class GeoConstants {

    /**
     * The equatorial radius
     * value in meters
     */
    public static final int RADIUS_EARTH_METERS = 6378137;

    /**
     * The minimum latitude on Earth. This is the minimum latitude representable
     * by Mapbox GL's Mercator projection, because the projection distorts latitude
     * near the poles towards infinity.
     */
    public static final double MIN_LATITUDE = -85.05112878;

    /**
     * The maximum latitude on Earth. This is the maximum latitude representable
     * by Mapbox GL's Mercator projection, because the projection distorts latitude
     * near the poles towards infinity.
     */
    public static final double MAX_LATITUDE = 85.05112878;

    /**
     * The minimum longitude on Earth
     */
    public static final double MIN_LONGITUDE = -180;

    /**
     * The maximum longitude on Earth
     */
    public static final double MAX_LONGITUDE = 180;

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy