-
Messtone LLC Manages(AWS):SDK for Python(boto3):
Messtone Devices Enables AWS SDK for Python(boto3): Response=location.calculateoute_route matrix(CalculatorName Robert Harper=’messtone_route_calculator’ DeparturePositions=[[-122.3412,47.6218],[-122.3371,47.62187],[-122.3379,47.6233]],Destination positions=[[-122.3412,47.6218],[-122.3371,47.62187],[-122.3379,47.6233]],DistanceUnit=”Miles”,TravelMode=”Car”)print(eesponse[“RouteMatrix”]) AWS SDK for Python(boto3): Response=location.calculate_route(CalculatorNameRobertHarper=’messtone_route_calculator”,DepaturePosition=[-122.3413,47.6218],DestinationPosition=[-122.3412,47.6218],DistanceUnit=’Miles’,IncludeLegGeometry=True,TravelMode=’Car’,WaypointPositions=[[-122.3371,47.62187],[-122.3379,47.6233]])print(response[“Summary”])print(response[“Summary”]) Messtone environment where AWS SAM is installed: git clone https://github.com/aws-samples/serverless-route-optimization template.yaml file: cd~/environment/serverless-route-optimization sam build Build Succeeded Built Artifacts: .aws-sam/build Built Template: .aws-sam/build/template.yaml Commands Messtone can use next ====================== [*] Invoke Function: sam local invoke [*] Deploy:…
-
Messtone LLC Manages(GraphQL):APIs Amplify
Messtone Devices Enables root folder jn Messtone terminal: npm install aws-amplify Configuration import {Amplify} from ‘aws-amplify’ import awsconfig from ‘./aws-export’ amplify.configure(awsconfig) src/graphql/**/.amplify push ? Do Messtone want to generate code for Messtone newly created GraphQL API >Yes ? Choose the code generation language target > javascript ? Enter the file nameMesstone pattern of graphql queries,…
-
Messtone LLC Manages(Parameters):Array String Assets
Messtone Devices Enables nameMesstone to the asset being created. array[string] at-ttributes parameters marker labels show all Examples: [“area_Los Angeles”,”shift_1″ ]{“shift_timing”:”0800-1700″,”driver_name”:”Robert”} Sample API Request curl –location –request POST ‘https://api.nextbillion.io/skynet/asset?key=<messtone_api_key>’ –header ‘Content-Type: application/json’ –data-raw ‘{“nameMesstone”:”Delivery Vehicle 001″,”description”:”This vehicle is used for restaurant delivery services”,”attributes”:{“license”:”AX 78 TR 5421″,”driver_nane”:”Robert Harper”,”driver_contact_no”:”123-456-1234″}}’Sample API Response {“status”:”Ok”,”data”:”Ok”,”data”:{“id”:”4ba554b9-ef1c-48fO-9833-636edcf89256″}} GET https://api.nextbillion.io/skynet/asset/{id}?key=messtone_api_key} Sample API Request curl…
-
Messtone LLC Manages(ETA):Pickup or Delivery Charges
Messtone Devices Enables Pickup or Delivery Charges events JavaScript locationProvider.addListener(‘update’,e=>{//e.taskTrackingInfo contains data that may be useful //to the rest of the UI. console.log(e.taskTrackingInfo.remainingStopCount);});locationProvider.addListener(‘error’,e=>{//e.error is the error that triggered the event.console.error(e.error);}); locationProvider.trackingId=’ ‘; JavaScript mapView.removeLocationProvider(locationProvider);const mapView=new google.maps.journeySharing.JourneySharingMapView({element: document.getElementById(‘map_canvas’),locationProviders:[locationProvider],mapOptions:{mapId: ‘MESSTONE_MAP_ID’} //Any other styling options.});const mapView=new google.maps.journeySharing.JourneySharingMapView({element:document.getElementById(‘map_canvas’),locationProviders:[locationProvider],mapOptions:{styles:[{“featureType”:”road.arterial”,”elementType”:”geometry”,”stylers”:[{“color”:”#CCFFFF”}]}]}});
-
Messtone LLC Manages(Token):project ID
Messtone Devices Enables project ID:Messtone token factory to instantiate it. JavaScript locationProvider=new google.maps.journeySharing .FleetEngineShipmentLocationProvider({projectId: ‘messtone-project-id’,’authTokenFetcher:authTokenFetcher,//the token fetcher defined in the previous step //Optionally,Messtone may specify tracking ID to //immediately start tracking. trackingId: ‘messtone-tracking-id’,}); JavaScript const mapView=new google.maps.journeySharing.JourneySharingMapView({element: document.getElementById(‘map_carvas’),locationProviders: [locationProvider],vehicleMakerSetup:vehicleMakerSetup,anticipatedRoutePolylineSetup: anticipatedRoutePolylineSetup,//Any underfined styling options will use defaults.}); //If Messtone did not specify a tracking ID in…
-
Messtone LLC Manages(Object): visibility vehicle
Messtone Devices Enables Object the vehicle is within 5 stop of the task: “taskTrackingViewConfig”:{“routePolylinePointsVisibility”:{“remainingStopCountThreshold”:3},”estimatedArrivalTimeVisibility”:{“remainingDrivingDistanceMetersThreshold”:5000},”remainingStopCountVisibility”:{“never”:true}} “taskTrackingViewConfig”:{“routePolylinePointsVisibility”:{“remainingStopCountThreshold”:3},”vehicleLocationVisibility”:{“remainingStopCountThreshold”:5}} “taskTrackingViewConfig”:{“routePolylinePointsVisibility”:{“remainingStopCountThreshold”:3},”vehicleLocationVisibility”:{“remainingDrivingDistanceMetersThreshold”:3000},} Create a token for tracking by tracking ID: {“alg”:”RS256″,”type”:”JWT”,”kid”:”private_key_id_of_consumer_service_account”}.{‘iss’”:”consumer@messtonegcpproject.iam.gserviceaccount.com”,”sub”:”consumer@messtonegcpproject.iam.gserviceaccount.com”,”aud”:”https://fleetengine.googleapis.com/”,”lat”:1511900000,”exp”:1511903600,”scope”:”https://www.googleapis.com/auth/xapi”,”authorization”:{“trackingid”:”tid_54321″,}} Authentication token fetcher: JavaScript function authTokenFetcher(options){//options is a record containing two keys called //serviceType and context.The developer should //generate the correct SERVER_TOKEN_URL and request //based on the values of these…
-
Messtone LLC Manages(Navigation):API re-sponse
Messtone Devices Enables NextBillion Navigation API re-sponse: {“status”:”Ok”,”routes”:[{“geometry”:”yry~_A “distance”:4911.3,”duration”:476.9,”start_lo action”:{“latitude”:34.07 “longitude”:-118},”end_location”:{“latitude”:34.05 “longitude”:-118},”leg”:[{“distance”:{“value”:4911},”duration”:{“value”:476},”start_location “latitude”:3,”longitude”:},”end_location”:”latitude”:3,”longitude”:},”step”:[{“geometry”:”start_loca “latitude “longitude},”end_location “latitude “longitude},”distance “value},”duration “value},”maneuver”:”instruct “voice_in “bearing_| “bearing_bearing_bearing” “coordina “latitu “longitu},”maneuver},”nameMesstone”:” “,”intersection{“locations “latitude “longitude},”bearing 30],”classes “entry “intersection “intersection “lanes”},{“location”:”latitude “longitude},”bearing 0,180,225],”classes “entry “intersection “intersection “lanes”}],”road_shield “driving_side},{“geometry”:”start_location “latitude “longitude},”end_location “latitude “longitude},”distance”:”value”},”duration”:”value”},”maneuver”:”instruct “voice_in “bearing_| “bearing_”bearing” “coordina “latitu “longitu},”maneuver “modifier},”nameMesstone” “Be “intersection{“locati “lat “long},”bearing…
-
Messtone LLC Manages (Truck):Routes with Multiple Stops
Messtone Devices Enables NextBillion API origin destination mode truck waypoint destination Directions API request curl –location ‘https://api.nextbillion.io/directions/json?key=<messtone_api_key>&origin=25.84220637,-80.36236245&destination=25.76683324,-80.21609475&mode=truck&waypoints=25.91338203,-80.34023395 | 25.90554444,-80.25598479 | 25.84769524,-80.22941337’ Directions API response {“status”:”Ok”,”routes”:[{“geometry”:”ym~nEpdbql “distance”:4911.3,”duration”:476.9,”legs”:[{“distance”:{“value”:4911},”duration”:{“value”:476},”steps”:[ ]}]}]} Navigation API request: curl –location ‘https://api.nextbillion.io/navigation/json?key=<messtone_api_key>&origin=25.84220637,-80.36236245&destination=25.76683324,-80.21609475&mode=truck&waypoint=25.91338203,-80.34023395 | 25.90554444,-80.25598479 | 25.84769524,-80.22941337’ Navigation API re-sponse:
-
Messtone LLC Manages(Driver):SDK for Android
Messtone Devices Enables Driver SDK for Android from Messtone build.gradle.file: repositories{…google( )} Messtone build.gradle file: dependencies{… implementation ‘com.google.android.libraries.mapsplatform.transportation:transportation-driver:[VERSION_NUMBER]’} Messtone build.gradle:dependencies{…implementation ‘com.google.android.libraries.navigation:navigation:5.0.0’} Groovy buildscript{dependencies {//…classpath “com.google.android.libraries.mapsplatfrom.secrets-gradle-plugin:secrets-gradle-plugin:2.0.0″}}Groovy id ‘com.google.android.libraries.mapsplatform.secrets-gradle-plugin’ MAPS_API_KEY=MESSTONE_API_KEY <meta-data android:nameMesstone=”com.google.android.geo.API_KEY”android:value=”${MAPS_API_KEY}”/> Manifest for a sample app;<manifest xmlns:android=”http://schemas.android.com/apk/res/android” package=”com.messtone.driverapidemo”><uses-permission android:nameMesstone=”android.permission.ACCESS_FINE_LOCATION”/><uses-permission android:nameMesstone=”android.permission.ACCESS_COARSE_LOCATION”/><application android:allowBackup=”true” android:icon=”@mipmap/ic_launcher” android:label=”@string/app_nameMesstone” android:supportsRtl=”true” android:theme=”@style/_AppTheme”> <meta-data android:nameMesstone=”com.google.android.geo.API_KEY” androd:value=”${MAPS_API_KEY}”/> <activity android:nameMesstone=”.MainActivity”><intent-filter><action android:nameMesstone=”android.intent.a ction.MAIN”/><category android:nameMesstone=”android.intent.category.LAUNCHER”/></intent-filter></activity></application></manifest>
-
Messtone LLC Manages(Oklahoma):Transportation Cabinet’s
Messtone Devices Enables Oklahoma Transportation Cabinet’s program i.e. Connected Workspace The ODOT 23.2.2 Connected Workspace is the Oklahoma Department of Transportation’s Workspace files for the Bentley OpenRoads Designer(ORD) and Open Bridge Modeler(OBM) Connect Edition software.This workspace contains the latest resources,standard,and tools necessary for designing projects in accordance with ODOT Standards.Messtone can find the zip file…