Android Question starting Taxi Driver and Taxi Passenger App

Discussion in 'Android Questions' started by Sai Main Seng Kham, Jul 28, 2019.

  1. Sai Main Seng Kham

    Sai Main Seng Kham Member Licensed User

    I want to make the app of Taxi for my town.

    How can i make to get the driver realtime location and passenger location.
    and also how can i navigation the driver location to passenger location with google map.
  2. DonManfred

    DonManfred Expert Licensed User

    The Driver app should use GPS to get the Location. On Locationchange you upload the new Location to your server or store it in a Firebase Realtime Database or Firestore Database.
    The Passenger app send his Location to your Server too.
    You can use an Intent to Open GoogleMap app to Navigate to the given Location (the one from the Passenger) in your Driver App after the driver app requests the stored passender location from your server.

    All in all this is a more complicated/complex Solution than you may think. And you wrote in another thread that you are not own any Server (this is probably a problem you need to take care of too).

    My answer here is just a base plan (Ideas); It depends on a lot of things you need to Consider.

    Note that there is no example code for this; at least i did not see any in the Forum.

    You really should start with simpler Apps as i think this is over your knowledge.
    Last edited: Jul 28, 2019
    Sai Main Seng Kham likes this.
  3. Sai Main Seng Kham

    Sai Main Seng Kham Member Licensed User

    thanks u Sir @DonManfred
    i just get this app idea now and posted in forum.
    Just a thinking :)
    Hope someday i can make it
    thanks u
  4. DonManfred

    DonManfred Expert Licensed User

    Note that is was not my plan to demotivate you! I just offered some thoughts.
    Start with getting familar with GPS; do a working project which gets the GPS-Location and send the location to your server.
    Build a small server project which receives locations from Drivers and store the Location, which answeres requests from a Passenger app to send the nearest Drivers.

    As these are basic requirements for this project you should be FAMILAR with GPS and REST-Calls to your Server and building a REST-Server which answeres the requests.

    For all of this you find examples and Tutorials in the forum.
    emexes likes this.
  5. aeric

    aeric Active Member Licensed User

    I am also creating a similar app and testing with small project now. For now, my progress is in Driver app.

    The things I have successfully implemented are:
    Search address (Place API)
    Show 2 pins on map (Map API)
    Draw direction line on the map (Direction API) - also show distance in km and duration in minutes

    Now I am experimenting with GPS to get my current location. Let say driver is now within a range of Latitude Longitude of the passenger location so he can press the button "I have arrived". I am testing up to 5 decimal place for those values and see how it goes.
    tpachhai likes this.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice