Coder Social home page Coder Social logo

imranmnts / maplibre-navigation-android Goto Github PK

View Code? Open in Web Editor NEW

This project forked from maplibre/maplibre-navigation-android

0.0 0.0 0.0 14.41 MB

Maplibre Navigation SDK for Android

License: MIT License

Python 1.06% Java 96.91% Kotlin 1.60% Makefile 0.42%

maplibre-navigation-android's Introduction

Flitsmeister Navigation Android Splash

Jitpack

The Maplibre Navigation SDK for Android is built on a fork of the Mapbox Navigation SDK v0.19 which is build on top of the Mapbox Directions API and contains logic needed to get timed navigation instructions.

With this SDK you can implement turn by turn navigation in your own Android app while hosting your own Map tiles and Directions API.

Why have we forked

  1. Mapbox decided to put a closed source component to their navigation SDK and introduced a non open source license. Maplibre wants an open source solution.
  2. Mapbox decided to put telemetry in their SDK. We couldn't turn this off without adjusting the source.
  3. We want to use the SDK without paying Mapbox for each MAU and without Mapbox API keys.

All issues are covered with this SDK.

What have we changed

  • We completely removed the UI part from the SDK so it will only contain the logics for navigation and not the visuals.
  • We upgraded the Mapbox Map SDK to maplibre SDK version 9.4.0.
  • We upgraded the NavigationRoute with the possibility to add an intercepter to the request.
  • We changed the locationLayerPlugin to the location component
  • We updated the logic around the implementation of the locationEngine so it can be used with the new locationEngine from the Mapbox SDK.
  • We removed the telemetry class from the project. Nothing is being send to Mapbox or Maplibre.

Getting Started

If you are looking to include this inside your project, you have to follow the the following steps:

gradle

Step 1. Add it in your root build.gradle at the end of repositories:

  allprojects {
    repositories {
      ...
      maven { url 'https://jitpack.io' }
    }
  }

Step 2. Add the dependency

  implementation 'com.github.flitsmeister:flitsmeister-navigation-android:v1.0.4'

maven

Step 1. Add it in your root build.gradle at the end of repositories:

  <repositories>
    <repository>
      <id>jitpack.io</id>
      <url>https://jitpack.io</url>
    </repository>
  </repositories>

Step 2. Add the dependency

  <dependency>
     <groupId>com.github.flitsmeister</groupId>
     <artifactId>flitsmeister-navigation-android</artifactId>
     <version>v1.0.0</version>
  </dependency>

sbt

Step 1. Add it in your build.sbt at the end of resolvers:

  resolvers += "jitpack" at "https://jitpack.io"

Step 2. Add the dependency

  libraryDependencies += "com.github.flitsmeister" % "flitsmeister-navigation-android" % "v1.0.4"	

leiningen

Step 1. Add it in your project.clj at the end of repositories:

  :repositories [["jitpack" "https://jitpack.io"]]

Step 2. Add the dependency

  :dependencies [[com.github.flitsmeister/flitsmeister-navigation-android "v1.0.4"]]

To run the sample code on a device or emulator, include your developer access token in developer-config.xml found in the project.

Getting Help

  • Have a bug to report? Open an issue. If possible, include the version of Flitsmeister Services, a full log, and a project that shows the issue.
  • Have a feature request? Open an issue. Tell us what the feature should do and why you want the feature.

We've added one navigation example to this repo's test app. We are planning to add more to help you get started with the SDK and to inspire you.

In order to see the map or calculate a route you need your own Maptile and Direction services.

Contributing

We welcome feedback, translations, and code contributions! Please see CONTRIBUTING.md for details.

License

100% MIT License

maplibre-navigation-android's People

Contributors

1ec5 avatar abcdan avatar brammos avatar danesfeder avatar electrostat avatar ericrwolfe avatar frankkienl avatar frederoni avatar gbiervliet avatar guardiola31337 avatar imranmnts avatar kartikdot avatar kkaefer avatar rubenmx avatar sarahsnow1 avatar sjoerdperfors avatar zugaldia 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.