项目作者: 3v1n0

项目描述 :
Google Maps Turn by Turn Navigation Notifications parser API for Android
高级语言: C++
项目地址: git://github.com/3v1n0/GMapsParser.git
创建时间: 2020-10-04T23:42:20Z
项目社区:https://github.com/3v1n0/GMapsParser

开源协议:Other

下载


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:

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

LICENSE

This is released under the terms of LGPL-3.0