diff options
author | Jan Tattermusch <jtattermusch@users.noreply.github.com> | 2018-04-27 17:31:23 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-27 17:31:23 +0200 |
commit | 171044c4d422a460a21393d8584875e70be1fa85 (patch) | |
tree | 8978c4bde1414eb27b7259b5e85c69b615d3848c /examples | |
parent | 198d0f56ce3125ebe60df62f313203034b21d743 (diff) |
Fix bad variable name in route_guide_server.js
Diffstat (limited to 'examples')
-rw-r--r-- | examples/node/dynamic_codegen/route_guide/route_guide_server.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/node/dynamic_codegen/route_guide/route_guide_server.js b/examples/node/dynamic_codegen/route_guide/route_guide_server.js index f9028e860d..3819c092eb 100644 --- a/examples/node/dynamic_codegen/route_guide/route_guide_server.js +++ b/examples/node/dynamic_codegen/route_guide/route_guide_server.js @@ -122,7 +122,7 @@ function getDistance(start, end) { var deltalon = lon2-lon1; var a = Math.sin(deltalat/2) * Math.sin(deltalat/2) + Math.cos(lat1) * Math.cos(lat2) * - Math.sin(dlon/2) * Math.sin(dlon/2); + Math.sin(deltalon/2) * Math.sin(deltalon/2); var c = 2 * Math.atan2(Math.sqrt(a), Math.sqrt(1-a)); return R * c; } |