Skip to content

Commit

Permalink
CGI output: Fix bug with partial 'to' segment
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.openstreetmap.org/applications/rendering/gosmore@24204 b9d5c4c9-76e1-0310-9c85-f3177eceb1e4
  • Loading branch information
nic committed Nov 11, 2010
1 parent 216f11b commit 20c57d2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions gosmore.cpp
Expand Up @@ -3073,12 +3073,12 @@ int UserInterface (int argc, char *argv[],
double pr = ((final->lat - shortest->nd->lat) * (double)
(tlat - shortest->nd->lat) + (final->lon - shortest->nd->lon) *
(double)(tlon - shortest->nd->lon)) /
(Sqr (final->lat - shortest->nd->lat) +
Sqr (final->lon - shortest->nd->lon) + 1);
(Sqr ((double)(final->lat - shortest->nd->lat)) +
Sqr ((double)(final->lon - shortest->nd->lon)) + 1);
printf("%lf,%lf,j,(unknown-style),0,fini\n\r",
LatInverse (shortest->nd->lat + pr * (final->lat - shortest->nd->lat)),
LonInverse (shortest->nd->lon + pr * (final->lon - shortest->nd->lon)),
shortest->dir, shortest->nd->other[shortest->dir]);
LonInverse (shortest->nd->lon + pr * (final->lon - shortest->nd->lon)));
// shortest->dir, shortest->nd->other[shortest->dir]);
// shortest->nd->other[1-shortest->dir]);
//final->lat - shortest->nd->lat, final->lon - shortest->nd->lon);
}
Expand Down

0 comments on commit 20c57d2

Please sign in to comment.