Giter Club home page Giter Club logo

real_time_vehicle_tracking_app's Introduction

Real Time Vehicle Tracking App

Real Time Vehicle Tracking App with web socket Built using Flutter

Description

This is a demo project provide the idea how real time tracking work based on web socket protocol, i used Bloc pattern to provide a more realistic example.

The tracking process consist of three main elements

Design image

  • Driver

    Mobile Application or embedded device connected to the server and updating its location continuously.

  • Client

    Mobile Application connected to the server updating its location and listing to nearest drivers locations continuously.

  • Server

    Backend Server to Mange Connections between Clients and Drivers.

This project is focusing on the client side, so i am using a server with single end point to mock the tracking web socket.

How to use this project

Before you start you will need Flutter SDK Installed,Google Maps Api Key,Dart Frog.

  1. Config Android and IOS

    • Specify your API key in the application manifest android/app/src/main/AndroidManifest.xml

         <manifest ...
           <application ...
             <meta-data android:name="com.google.android.geo.API_KEY"
               android:value="YOUR KEY HERE"/>
      
    • Specify your API key in the application delegate ios/Runner/AppDelegate.swift

        import UIKit
        import Flutter
        import GoogleMaps
      
        @UIApplicationMain
        @objc class AppDelegate: FlutterAppDelegate {
          override func application(
        _ application: UIApplication,
        didFinishLaunchingWithOptions launchOptions: [UIApplication. LaunchOptionsKey: Any]?
            ) -> Bool {
         GMSServices.provideAPIKey("YOUR KEY HERE")
         GeneratedPluginRegistrant.register(with: self)
           return super.application(application, didFinishLaunchingWithOptions: launchOptions)
            }
          }
  2. Install Dart Frog

dart pub global activate dart_frog_cli
  1. Go to server root folder and run
cd real_time_vehicle_tracking_server
dart_frog dev
  1. Run Flutter App

Tools & Packages

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.