1
2
3
4
5
6
7
8
9
10
11 package org.mule.example.gpswalker;
12
13 import org.codehaus.jackson.annotate.JsonProperty;
14
15
16
17
18
19
20 public class GpsCoord
21 {
22 @JsonProperty
23 private float latitude;
24 @JsonProperty
25 private float longitude;
26
27 public GpsCoord(float lat, float lng)
28 {
29 latitude = lat;
30 longitude = lng;
31 }
32
33 public float getLatitude()
34 {
35 return latitude;
36 }
37
38 public float getLongitude()
39 {
40 return longitude;
41 }
42
43 public void setLatitude(float latitude)
44 {
45 this.latitude = latitude;
46 }
47
48 public void setLongitude(float longitude)
49 {
50 this.longitude = longitude;
51 }
52 }