Bridges-C++ 3.5.0
Bridges(C++ API)
Amenity.h
Go to the documentation of this file.
1
2#ifndef AMENITIES
3
4#define AMENITIES
20#include <string>
21
22class Amenity {
23
24 private:
25 long id_val;
26 double lat;
27 double lon;
28 string name;
29 vector<string> other;
30
31 public:
36 id_val = 0;
37 lat = 0;
38 lon = 0;
39 name = "";
40 other.clear();
41 }
42
52 Amenity (double id_val, double lat, double lon, string name,
53 vector<string> other) {
54 setId(id_val);
55 setLat(lat);
56 setLon(lon);
57 setName(name);
58 setOther(other);
59 }
60
65 long getId() {
66 return id_val;
67 }
68
73 void setId(long id) {
74 id_val = id;
75 }
76
81 double getLat() {
82 return lat;
83 }
84
90 void setLat(double latitude) {
91 lat = latitude;
92 }
93
99 double getLon() {
100 return lon;
101 }
102
108 void setLon(double longitude) {
109 lon = longitude;
110 }
111
116 string getName() {
117 return name;
118 }
119
124 void setName(string n) {
125 name = n;
126 }
127
132 vector<string> getOther() {
133 return other;
134 }
135
140 void setOther(vector<string> oth) {
141 other = oth;
142 }
143};
144
145#endif
Class that hold Open Street Map Amenity data.
Definition: Amenity.h:22
long getId()
Definition: Amenity.h:65
vector< string > getOther()
Definition: Amenity.h:132
Amenity()
Definition: Amenity.h:35
double getLon()
Definition: Amenity.h:99
string getName()
Definition: Amenity.h:116
void setLat(double latitude)
Definition: Amenity.h:90
double getLat()
Definition: Amenity.h:81
void setId(long id)
Definition: Amenity.h:73
void setOther(vector< string > oth)
Definition: Amenity.h:140
void setLon(double longitude)
Definition: Amenity.h:108
void setName(string n)
Definition: Amenity.h:124
Amenity(double id_val, double lat, double lon, string name, vector< string > other)
Definition: Amenity.h:52