Skip to content

Commit 8e4c626

Browse files
committed
Increased the precision of coordinates
As a request fom Tristramg#6
1 parent 1c4d50b commit 8e4c626

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

parse.cc

+1
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,7 @@ vector<Edge> Parser::get_edges() const
172172
tmp.open("temp_ways");
173173
node_t id, source=0;
174174
stringstream geom;
175+
geom.precision(10);
175176
double length = 0, pred_lon = 0, pred_lat = 0;
176177
char car_direct, car_rev, foot, bike_direct, bike_rev;
177178
int nb;

parse.h

-1
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,6 @@ struct Parser
9191
{
9292
Node * source;
9393
Node * prev;
94-
std::stringstream geom;
9594
NodeMapType nodes;
9695
node_t ways_count;
9796
int edge_length;

0 commit comments

Comments
 (0)