0.1.48 • Published 1 year ago

fareye-service-time-predictor v0.1.48

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

fareye-service-time-predictor

This npm package is used for calculating service time for each transaction.

Installation

npm install fareye-service-time-predictor

Peer Dependencies

npm install "react-native-background-geolocation"

For more information: https://www.npmjs.com/package/react-native-background-geolocation

npm install "react-native-sqlite-storage"

For more information: https://www.npmjs.com/package/react-native-sqlite-storage

Usage

There are three main methods to use this SDK:

1.init- This method is used to iniatalize the SDK

import { Tracking } from "fareye-service-time-predictor";

Tracking.init()
  1. destroy - This method is to stop the SDK completley
import { Tracking } from "fareye-service-time-predictor";

Tracking.destroy()
  1. getServiceTime - This method will help you to calculate the service time
import { Tracking } from "fareye-service-time-predictor";

const inputData = {
            id: 111,
            uuid: "UX26892",
            type: "Delivery",
            extraData: "",
            target: "Fareye",
            latitude:  2.4,
            longitude:  3.33,
            addressLine1: "lane 29, Block a",
            addressLine2: "bingo street, karnataka",
            zipCode: "132001",
            groupId: "X100",
            weight: 25,
            length: 32,
            width: 100,
            height: 250
}

Tracking.getServiceTime(inputData)

Props

PropTyperequiredRemarksNote
idlongyesUnique identifier for a job.
UUIDstringyesUnique identifier for a user.
typestringno"delivery" or "pickup"send this data for better acuracy
latitudedoubleyesJob latitude
longitudedoubleyesJob longitude
addressLine1stringnoJob address line 1send this data for better acuracy
addressLine2stringnoJob address line 2send this data for better acuracy
extraDatastringnoAny extra data that needs to be shared
zipCodestringyesUnique identifier for a job
groupIdstringnoIdentifier for jobs completed in bulk
weightlongnoWeight of the parcelsend this data for better acuracy
lengthlongnoLength of the parcelsend this data for better acuracy
widthlongnoWidth of the parcelsend this data for better acuracy
heightlongnoHeight of the parcelsend this data for better acuracy

API

getServiceTime - Call this function for calculating service time

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

0.1.47

1 year ago

0.1.48

1 year ago

0.1.42

1 year ago

0.1.43

1 year ago

0.1.44

1 year ago

0.1.45

1 year ago

0.1.46

1 year ago

0.1.30

1 year ago

0.1.31

1 year ago

0.1.32

1 year ago

0.1.10

2 years ago

0.1.33

1 year ago

0.1.11

1 year ago

0.1.34

1 year ago

0.1.12

1 year ago

0.1.35

1 year ago

0.1.13

1 year ago

0.1.36

1 year ago

0.1.14

1 year ago

0.1.37

1 year ago

0.1.15

1 year ago

0.1.27

1 year ago

0.1.28

1 year ago

0.1.29

1 year ago

0.1.41

1 year ago

0.1.20

1 year ago

0.1.21

1 year ago

0.1.22

1 year ago

0.1.23

1 year ago

0.1.24

1 year ago

0.1.25

1 year ago

0.1.26

1 year ago

0.1.40

1 year ago

0.1.38

1 year ago

0.1.16

1 year ago

0.1.8

2 years ago

0.1.39

1 year ago

0.1.17

1 year ago

0.1.18

1 year ago

0.1.19

1 year ago

0.1.9

2 years ago

0.1.7

2 years ago

0.1.6

2 years ago

0.1.5

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago