Giter VIP home page Giter VIP logo

driving-example-android's Introduction

Driving sample app for Android

This example shows how to integrate Sygic Driving library.

Usage

  1. Open project in Android studio.
  2. Synchronize gradle project.
  3. In local.properties file set the license to sygic.license key. To get license key, please contact our support.
  4. If you want to be able to see your trips on maps, add your Google Maps API key to google.maps.key in local.properties.
  5. Run the app.

The best way to test the app is to drive a vehicle.

Migration guide from version 1.x

To update library version in your project from 1.x to 2.x follow these steps:

  1. Update driving library version in your build.gradle to latest version.
  2. initialize method signature was changed. It is no longer asynchronous, so the result of initialization is returned immediately.
  3. Sygic license key must be provided in initialize method. To get your license key, please contact our support.
  4. If you are using Driving library together with Sygic Maps SDK, you have to use single instance of Sygic Auth object. For Driving library this means you have to pass SygicAuthConfig.UseExternalAuth(authInstance) to initialize method.
  5. Some constants like DetectorState and TripState were changed to enums.
  6. Some method overloads (e.g. onTripUploaded) were removed.
  7. double timestamps were replaced by Date, GpsPosition was replaced by Location.
  8. TripValidityCriteria can be set to discard trips that are too short. Default criterias are set to 90 seconds duration and 400 meters length. When trip is discarded, onTripDiscarded event is fired (instead of onTripFinished). Discarded trips are not sent to server and are automatically deleted.
  9. Please refer to changelog for other changes.

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.