示例#1
0
 bool operator()(const trainStopData& tsd) {
     double new_dist = haverdist(latitude, longitude, tsd.get_latitude(), tsd.get_longitude());
     if (new_dist < shortest_dist) {
         shortest_dist = new_dist;
         return true;
     }
     return false;
 }
示例#2
0
 bool operator() (trainStopData stopData){
     return stopData.get_id()[0] == _route;
 }
示例#3
0
 //printTrainStopInfo ();
 void operator() (trainStopData stopData){
     cout << "Stop ID: " << stopData.get_id()<< endl;
     cout << "Stop Name: " << stopData.get_stop_name() << endl;
     cout << "Stop Latitude: " << stopData.get_latitude() << endl;
     cout << "Stop Longitude: " << stopData.get_longitude() << endl;
 }
示例#4
0
 bool operator() (trainStopData stopData){
     return _d >= haverdist(_latitude, _longitude, stopData.get_latitude(), stopData.get_longitude());
 }
示例#5
0
 bool operator() (trainStopData stopData){
     return stopData.get_id() == _stopId;
 }
示例#6
0
	void operator()(trainStopData t){
		cout << "Station id: " << t.get_id() << endl;
		cout << "Station name: " << t.get_stop_name() << endl;
		cout << "Station latitude and longitude : " << t.get_latitude() << ", " << t.get_longitude() <<endl;
	}
示例#7
0
	bool operator()(trainStopData t){
		return (d <= haverdist(latitude, longitude, t.get_latitude(), t.get_longitude()));
	}
示例#8
0
	bool operator()(trainStopData t){
		return (t.get_id() == stopId);
	}
示例#9
0
	bool operator()(trainStopData t){
	return (t.get_id()[0] == route);
			
	}