GithubHelp home page GithubHelp logo

caiquetorres / hard-braking-zones-location-plugin Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 117 KB

Plugin created with CapacitorJS that allows the application to obtain the user's speed and position at each predefined time interval. Project that is part of a scientific initiation at Facens in the period 2021/2022.

Ruby 7.15% Swift 10.53% Objective-C 4.91% JavaScript 3.49% TypeScript 15.27% Kotlin 58.65%
capacitorjs typescript android geolocation kotlin

hard-braking-zones-location-plugin's Introduction

@hard-braking-zones/location

Project developed for monitoring hard braking zones as a scientific initiation at Facens in the period 2021/2022.

Install

npm install @hard-braking-zones/location
npx cap sync

API

init(...)

init(options: IInitOptions) => any

Method that needs to be called before the plugin starts.

Param Type
options IInitOptions

Returns: any


addListener(...)

addListener(eventName: string, listenerFunc: ListenerCallback) => any

Method that add some listener to listen for an event.

Param Type Description
eventName string defines the event name.
listenerFunc (err: any, ...args: {}) => void defines the callback that will be called when the event be fired.

Returns: any


addListener(...)

addListener(eventName: 'location', listenerFunc: (location: ILocation) => void) => any

Method that add some listener to listen for an event.

Param Type Description
eventName "location" defines the event name.
listenerFunc (location: ILocation) => void defines the callback that will be called when the event be fired.

Returns: any


Interfaces

IInitOptions

Interface that represents an object that is reponsible for setting up the plugin.

Prop Type Description
interval number Defines a value in seconds that represents the interval that the location event will be called with the user's current location.

PluginListenerHandle

Prop Type
remove () => any

ILocation

Interface that represents the device location data.

Prop Type
deviceId string
accuracy number
longitude string
latitude string
speed number

hard-braking-zones-location-plugin's People

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.