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