Fixes issue #104. Heading and Azimuth get computed now.

This commit is contained in:
DennisOSRM
2012-02-07 14:47:01 +01:00
parent c98f19c5a6
commit 5e275b3935
5 changed files with 38 additions and 9 deletions
+8
View File
@@ -93,6 +93,14 @@ static inline void doubleToString(const double value, std::string & output){
output = buffer ;
}
static inline void doubleToStringWithTwoDigitsBehindComma(const double value, std::string & output){
// The largest 32-bit integer is 4294967295, that is 10 chars
// On the safe side, add 1 for sign, and 1 for trailing zero
char buffer[12] ;
sprintf(buffer, "%g", value) ;
output = buffer ;
}
inline std::string & replaceAll(std::string &s, const std::string &sub, const std::string &other) {
assert(!sub.empty());
size_t b = 0;