package org.openmhealth.dsu.domain.ohmage;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * GPS Coordinates object (unlike Location as it does not have accuracy and time)
 * Created by changun on 12/12/15.
 */
public class Coordinates {
    final Number latitude, longitude;

    @JsonCreator
    public Coordinates(
            @JsonProperty(value = Location.JSON_KEY_LATITUDE, required = true) final Number latitude,
            @JsonProperty(value = Location.JSON_KEY_LONGITUDE, required = true) final Number longitude
    ) {
        this.latitude = latitude;
        this.longitude = longitude;

    }
}

@@ -301,38 +301,157 @@
 s %7B%0A    
-final Number latitude,
+@JsonProperty(Location.JSON_KEY_LATITUDE)  private final double latitude;%0A    @JsonProperty(Location.JSON_KEY_LONGITUDE) private final double
  longitu
@@ -581,22 +581,22 @@
 ) final 
-Number
+double
  latitud
@@ -688,14 +688,14 @@
 nal 
-Number
+double
  lon

add map prompt