Fixing hint ordering for via routes
This commit is contained in:
parent
504368b293
commit
1c50c55a42
@ -42,6 +42,55 @@ struct RouteParameters {
|
|||||||
std::vector<std::string> hints;
|
std::vector<std::string> hints;
|
||||||
std::vector<_Coordinate> coordinates;
|
std::vector<_Coordinate> coordinates;
|
||||||
typedef HashTable<std::string, std::string>::MyIterator OptionsIterator;
|
typedef HashTable<std::string, std::string>::MyIterator OptionsIterator;
|
||||||
|
|
||||||
|
void setZoomLevel(const short i) {
|
||||||
|
if (18 > i && 0 < i)
|
||||||
|
zoomLevel = i;
|
||||||
|
}
|
||||||
|
|
||||||
|
void setChecksum(const int c) {
|
||||||
|
checkSum = c;
|
||||||
|
}
|
||||||
|
|
||||||
|
void setInstructionFlag(const bool b) {
|
||||||
|
printInstructions = b;
|
||||||
|
}
|
||||||
|
|
||||||
|
void printService( const std::string & s) {
|
||||||
|
service = s;
|
||||||
|
}
|
||||||
|
|
||||||
|
void setOutputFormat(const std::string & s) {
|
||||||
|
outputFormat = s;
|
||||||
|
}
|
||||||
|
|
||||||
|
void setJSONpParameter(const std::string & s) {
|
||||||
|
jsonpParameter = s;
|
||||||
|
}
|
||||||
|
|
||||||
|
void addHint(const std::string & s) {
|
||||||
|
hints.resize(coordinates.size());
|
||||||
|
hints.back() = s;
|
||||||
|
}
|
||||||
|
|
||||||
|
void setLanguage(const std::string & s) {
|
||||||
|
language = s;
|
||||||
|
}
|
||||||
|
|
||||||
|
void setGeometryFlag(const bool b) {
|
||||||
|
geometry = b;
|
||||||
|
}
|
||||||
|
|
||||||
|
void setCompressionFlag(const bool b) {
|
||||||
|
compression = b;
|
||||||
|
}
|
||||||
|
|
||||||
|
void addCoordinate(boost::fusion::vector < double, double > arg_) {
|
||||||
|
int lat = 100000.*boost::fusion::at_c < 0 > (arg_);
|
||||||
|
int lon = 100000.*boost::fusion::at_c < 1 > (arg_);
|
||||||
|
_Coordinate myCoordinate(lat, lon);
|
||||||
|
coordinates.push_back(_Coordinate(lat, lon));
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user