Bridges-C++  3.4.5-dev1-6-g935685a
Bridges(C++ API)
Amenity.h
Go to the documentation of this file.
1 
2 #ifndef AMENITIES
3 
4 #define AMENITIES
20 #include <string>
21 
22 class Amenity {
23 
24  private:
25  long id_val;
26  double lat;
27  double lon;
28  string name;
29  vector<string> other;
30 
31  public:
35  Amenity() {
36  id_val = 0;
37  lat = 0;
38  lon = 0;
39  name = "";
40  other.clear();
41  }
42 
51  Amenity (double id_val, double lat, double lon, string name,
52  vector<string> other) {
53  setId(id_val);
54  setLat(lat);
55  setLon(lon);
56  setName(name);
57  setOther(other);
58  }
59 
64  long getId() {
65  return id_val;
66  }
67 
72  void setId(long id) {
73  id_val = id;
74  }
75 
80  double getLat() {
81  return lat;
82  }
83 
88  void setLat(double latitude) {
89  lat = latitude;
90  }
91 
96  double getLon() {
97  return lon;
98  }
99 
104  void setLon(double longitude) {
105  lon = longitude;
106  }
107 
112  string getName() {
113  return name;
114  }
115 
120  void setName(string n) {
121  name = n;
122  }
123 
128  vector<string> getOther() {
129  return other;
130  }
131 
136  void setOther(vector<string> oth) {
137  other = oth;
138  }
139 };
140 
141 #endif
Class that hold Open Street Map Amenity data.
Definition: Amenity.h:22
long getId()
Definition: Amenity.h:64
Amenity()
Definition: Amenity.h:35
double getLon()
Definition: Amenity.h:96
string getName()
Definition: Amenity.h:112
void setLat(double latitude)
Definition: Amenity.h:88
double getLat()
Definition: Amenity.h:80
void setId(long id)
Definition: Amenity.h:72
void setOther(vector< string > oth)
Definition: Amenity.h:136
void setLon(double longitude)
Definition: Amenity.h:104
void setName(string n)
Definition: Amenity.h:120
Amenity(double id_val, double lat, double lon, string name, vector< string > other)
Definition: Amenity.h:51
vector< string > getOther()
Definition: Amenity.h:128