mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-12 03:05:14 +00:00
Change build setup of JS clients, reintroduce beta publishing after losing it due to unmerged code (#238)
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
import * as routing from "m3o/routing";
|
||||
const { RoutingService } = require("m3o/routing");
|
||||
|
||||
// Turn by turn directions from a start point to an end point including maneuvers and bearings
|
||||
async function TurnByTurnDirections() {
|
||||
let routingService = new routing.RoutingService(process.env.MICRO_API_TOKEN);
|
||||
async function turnByTurnDirections() {
|
||||
let routingService = new RoutingService(process.env.MICRO_API_TOKEN);
|
||||
let rsp = await routingService.directions({
|
||||
destination: {
|
||||
latitude: 52.529407,
|
||||
@@ -16,4 +16,4 @@ async function TurnByTurnDirections() {
|
||||
console.log(rsp);
|
||||
}
|
||||
|
||||
await TurnByTurnDirections();
|
||||
turnByTurnDirections();
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import * as routing from "m3o/routing";
|
||||
const { RoutingService } = require("m3o/routing");
|
||||
|
||||
// Get the eta for a route from origin to destination. The eta is an estimated time based on car routes
|
||||
async function EtaFromPointAtoPointB() {
|
||||
let routingService = new routing.RoutingService(process.env.MICRO_API_TOKEN);
|
||||
async function etaFromPointAtoPointB() {
|
||||
let routingService = new RoutingService(process.env.MICRO_API_TOKEN);
|
||||
let rsp = await routingService.eta({
|
||||
destination: {
|
||||
latitude: 52.529407,
|
||||
@@ -16,4 +16,4 @@ async function EtaFromPointAtoPointB() {
|
||||
console.log(rsp);
|
||||
}
|
||||
|
||||
await EtaFromPointAtoPointB();
|
||||
etaFromPointAtoPointB();
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import * as routing from "m3o/routing";
|
||||
const { RoutingService } = require("m3o/routing");
|
||||
|
||||
// Retrieve a route as a simple list of gps points along with total distance and estimated duration
|
||||
async function GpsPointsForAroute() {
|
||||
let routingService = new routing.RoutingService(process.env.MICRO_API_TOKEN);
|
||||
async function gpsPointsForAroute() {
|
||||
let routingService = new RoutingService(process.env.MICRO_API_TOKEN);
|
||||
let rsp = await routingService.route({
|
||||
destination: {
|
||||
latitude: 52.529407,
|
||||
@@ -16,4 +16,4 @@ async function GpsPointsForAroute() {
|
||||
console.log(rsp);
|
||||
}
|
||||
|
||||
await GpsPointsForAroute();
|
||||
gpsPointsForAroute();
|
||||
|
||||
Reference in New Issue
Block a user