summaryrefslogtreecommitdiff
path: root/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/geometry/CoordinateRegion.java
blob: a70bb05a41ac14b567aeaf6e5a8267702142e7d5 (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
package com.mapbox.mapboxsdk.geometry;

/**
 * Implementation of iOS MKCoordinateRegion
 */
public class CoordinateRegion {
    private LatLng center;
    private CoordinateSpan span;

    public CoordinateRegion(final LatLng center, final CoordinateSpan span) {
        this.center = center;
        this.span = span;
    }

    public LatLng getCenter() {
        return center;
    }

    public void setCenter(final LatLng center) {
        this.center = center;
    }

    public CoordinateSpan getSpan() {
        return span;
    }

    public void setSpan(final CoordinateSpan span) {
        this.span = span;
    }
}