GithubHelp home page GithubHelp logo

mmreda / location-tracking Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 121 KB

This Android app tracks the user's location using the Google Location Services API and stores the location points in a Room database every 5 seconds. It shows the location points on a Google Map using a Polyline. also use the Directions API to get directions between two points selected by the user.

Kotlin 100.00%
android clean-architecture google-maps-api hilt kotlin lcoation mvvm retrofit room service

location-tracking's Introduction

Location Tracking

This Android app tracks the user's location using the Google Location Services API and stores the location points in a Room database every 5 seconds. It shows the location points on a Google Map using a Polyline. It also uses the Directions API to get driving directions between two points selected by the user.

The main features are:

Get the user's current location Start a location tracking by foreground service to get location updates every 5 seconds and store them in a database. Stop the location tracking. Show the stored location points on a map using a polyline. Get driving directions between two points using the Directions API. Handle user permissions for location access. The app has a fragment with a Google Map view. It checks for location permissions and enables the map's location functionality. It allows the user to start location tracking which starts a foreground service to get location updates. It stores the locations in a Room database and shows the path on the map. The user can also get directions between points and stop location tracking.

Some of the Technologies and Techniques Used

  • MVVM
  • Clean Architecture
  • Room
  • Retrofit
  • Data Binding
  • Foreground Service
  • Kotlin Coroutines
  • Flow
  • Dagger Hilt
  • Permissions
  • Google Maps API
  • Directions API
  • Google Location Services API

API KEY

You need to generate an API key from Google Cloud Consol by going to https://play.google.com/console

Then go to put MAPS_API_KEY="YOUR_API_KEY" in local.properties.

location-tracking's People

Contributors

mmreda avatar

Stargazers

 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.