Giter Site home page Giter Site logo

gmapsparser's Introduction

Simple Google Maps Navigation Notifications parser API for Android

A simple library (including a test service and application) written in kotlin that allows to parse the Google Maps android app turn-by-turn navigation notifications in order to get textual navigation data that can be exposed to other devices (such as wearables) or used in other applications.

API overview

Using the base class (NavigationListener) it's possible to create a simple service that monitors navigation events by reading the Navigation app notifications, such navigation updates are exposed with a NavigationData structure during onNavigationNotificationAdded() (on first event) and onNavigationNotificationUpdated() (afterwards).

A NavigationListenerEmitter is also provided as a convenience in case such events needs to be passed to another android service or application using Bundles or Parcelables.

Navigation events can also be exposed via a websocket that can be used by remote applications to get the notification events and control the navigation (stop or set a destination).

Example application

Here is provided a sample application that will get the notifications from the service and will replicate the parsed data in the main screen.

Screenshot

Usage

You can easily use these libraries using jitpack.

For example:

dependencies {
    // ...
    implementation 'com.github.3v1n0.GMapsParser:navparser:master-SNAPSHOT'
    // If you want to expose the events via a websocket as JSON or CBOR events
    implementation 'com.github.3v1n0.GMapsParser:navparser-websocket:master-SNAPSHOT'
    // Needed only to replicate the UI or for debugging reasons
    implementation 'com.github.3v1n0.GMapsParser:navparser-activity:master-SNAPSHOT'
    // ...
}

LICENSE

This is released under the terms of LGPL-3.0

gmapsparser's People

Contributors

3v1n0 avatar szwajda 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.