blob: 1a7544d33af5b52e90b15b0af70ed9a6a7f8d07a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
package com.mapbox.mapboxsdk.constants;
/**
* Contains constants used throughout the sdk classes.
*
* @since 6.0.0
*/
public class GeometryConstants {
/**
* The <a href='http://en.wikipedia.org/wiki/Earth_radius#Equatorial_radius'>equatorial radius</a>
* value in meters
*
* @since 6.0.0
*/
public static final int RADIUS_EARTH_METERS = 6378137;
/**
* This constant represents the lowest longitude value available to represent a geolocation.
*
* @since 6.0.0
*/
public static final double MIN_LONGITUDE = -180;
/**
* This constant represents the highest longitude value available to represent a geolocation.
*
* @since 6.0.0
*/
public static final double MAX_LONGITUDE = 180;
/**
* This constant represents the lowest latitude value available to represent a geolocation.
*
* @since 6.0.0
*/
public static final double MIN_LATITUDE = -90;
/**
* This constant represents the highest latitude value available to represent a geolocation.
*
* @since 6.0.0
*/
public static final double MAX_LATITUDE = 90;
/**
* Maximum latitude value in Mercator projection.
*
* @since 6.0.0
*/
public static final double MAX_MERCATOR_LATITUDE = 85.05112877980659;
/**
* Minimum latitude value in Mercator projection.
*
* @since 6.0.0
*/
public static final double MIN_MERCATOR_LATITUDE = -85.05112877980659;
private GeometryConstants() {
// Private constructor to prevent initializing of this class.
}
}
|