Skip to content

Commit 5291519

Browse files
authored
Merge pull request #83 from traveltime-dev/proto/remove-exponent-calculation
Proto/remove exponent calculation
2 parents ac56ec4 + d9cc256 commit 5291519

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "traveltime-api",
3-
"version": "6.1.3",
3+
"version": "6.1.4",
44
"description": "TravelTime API SDK for node js with TypeScript",
55
"main": "target/index.js",
66
"types": "target/index.d.ts",

src/client/protoClient.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ export class TravelTimeProtoClient {
7171
}
7272

7373
private encodeFixedPoint(sourcePoint: number, targetPoint: number) {
74-
return Math.round((targetPoint - sourcePoint) * (10 ** 5));
74+
return Math.round((targetPoint - sourcePoint) * 100000);
7575
}
7676

7777
private buildRequestUrl(uri: string, { country, transportation }: TimeFilterFastProtoRequest): string {

0 commit comments

Comments
 (0)