google-map-js
Advanced tools
Comparing version 1.0.8 to 1.0.9
{ | ||
"name": "google-map-js", | ||
"version": "1.0.8", | ||
"version": "1.0.9", | ||
"description": "Pass form latitude longititude and to latitude longitude to get the route for the two points with google api.", | ||
@@ -5,0 +5,0 @@ "main": "server.js", |
#!/usr/bin/env node | ||
const { Client } = require('@googlemaps/google-maps-services-js'); | ||
// Create a new client instance | ||
const client = new Client({}); | ||
@@ -41,3 +43,3 @@ | ||
mode: travelMode.trim().toLowerCase(), | ||
optimize: optimize.trim().toLowerCase(), | ||
optimize: typeof optimize === 'boolean' ? optimize : Boolean(optimize.trim().toLowerCase()), | ||
key: googleMapApiKey | ||
@@ -124,4 +126,2 @@ }, | ||
try { | ||
// Create a new client instance | ||
const client = new Client({}); | ||
@@ -128,0 +128,0 @@ // Define the address you want to geocode |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8806
153