153 thoughts on “Google Map GPS Cell Phone Tracker

  1. Frank

    Hi,

    So what phones does it run on (seems like the android and iphone would be pretty important platforms to get this to work on)?

    Frank

    Reply
  2. Nick Fox Post author

    Well, you have to understand the recent history of cell phones. I wrote that tutorial over 3 years ago pretty much before Android came out. For the first 3 years of iPhone, there were *no* background services, so it was impractical to build a gps tracker for iPhone.

    But I agree that those 2 platforms are important. I have built a commercial version for Android here:

    http://www.mycelltracker.com/

    and I also have built a version for iPhone as well. I plan on open-sourcing both of those soon but right now paid work takes precedence over open source…

    n

    Reply
  3. Frank

    I tried to call up the phone project in Netbeans but there are reference problems (it refers to a /rel folder that is on your desktop).

    I am happy to pay you for extended help with this proejct. Let me know if you are interested.

    Reply
  4. John Groves

    Hi Nick,

    I’ve been playing around with the code in Netbeans and I really like what you have done. I noticed you wrote this code a few years ago and you tested it with the Motorola I355. What do the phones require in order to run the .jad file. I’m playing around with several, and I know its using the JME, but seeing as I have it running on my phone (Nokia 5800), I wondered what was actually necessary for it to install. Also, this is working at the moment with an internal GPS tracker, will it work with a bluetooth GPS device if a phone doesn’t have an internal GPS tracker?

    Hope you are well and Merry Christmas!

    John

    Reply
  5. Martin

    Hi,

    I just read about your software. I’m currently working on a gps tracking system based on google maps. The application i’m working on is web based and people are able to record tracks using a tool called trackertag. This tool is only available for symbian right now and I’m looking for something that works on more mobile phone. Is your software able to send gps positions over HTTP? Currently my app is only in dutch right now but if you’re interested please have a look.

    Reply
  6. Peadar

    Hi, thanks for the fantastic app. works a treat πŸ™‚

    For all of you who are having trouble with the time bug (php, windows etc) here’s a workaround. All it does is insert the current time in the database instead of mangling the one from the device.

    comment or delete the following lines from ‘getgooglemap2.php’:
    $date = urldecode($_GET[‘dt’]);
    and
    $date = getDateFromJavaDate($date);

    and comment or delete the entire function ‘getDateFromJavaDate’ at the end of the php script.

    Then change the procedure ‘prcSaveGPSLocation2’ as follows:

    remove this line:
    _date VARCHAR(100),

    and replace ‘_date’ in the insert statement to ‘CURRENT_TIMESTAMP()’ instead

    in my case i dropped the database, edited the sql code and reloaded it with my adjusted procedure.

    mail me if you have a query
    phamer at vodafone dot ie

    all the best

    Reply
  7. aditya

    #1227 – Access denied; you need the SUPER privilege for this operation
    it is giving me this error when i m trying to load procedure prcGetRoutes()

    Reply
  8. Nick Fox Post author

    Peadar, I don’t necessarily recommend that because then you get the timezone of the server instead of the phone. That can be a problem if they are in different timezones.

    aditya, can you give me more details please…

    Nick

    Reply
  9. aditya

    $dbhost = ‘localhost’;
    $dbuser = ‘aadi11_gpstrac’;
    $dbpass = ‘tracker’;
    $dbname = ‘aadi11_gpstracker2’;

    $mysqli = mysql_connect($dbhost, $dbuser, $dbpass);
    if (!$mysqli)
    {
    die(‘Could not connect: ‘ . mysql_error());
    }

    Reply
  10. alissanielle

    my route page doesnt show anything sir.. http://www.hitomitakahashi.0fees.net/GPSTracker/displaymap2.php

    and on my phone says: GPS.getLocation:java.lang.NullPointerException

    i create these only in database:
    CREATE DEFINER=`root`@`localhost` PROCEDURE `prcSaveGPSLocation2`(
    _lat VARCHAR(45),
    _lng VARCHAR(45),
    _mph VARCHAR(45),
    _direction VARCHAR(45),
    _distance VARCHAR(45),
    _date VARCHAR(100),
    _locationMethod VARCHAR(100),
    _phoneNumber VARCHAR(20),
    _sessionID VARCHAR(50),
    _accuracy VARCHAR(20),
    _locationIsValid VARCHAR(5),
    _extraInfo VARCHAR(255)

    THE WORLD needs your app sir and I hope for your success soon.. thank you so much!

    Reply
  11. Tara

    Hi Nick,

    Just a quick question – have any of your mobile links changed? I’m trying to test my phone out on the websmithing server just to see if this will work before I start building the web side of it here, but my phone isn’t showing up on your map at http://www.websmithing.com/gpstracker2/displaymap2.php. I’m a bit stumped… Anything you can do to help would be greatly appreciated! Oh, I’m using a Blackberry Curve

    Reply
  12. Nick Fox Post author

    Hi Tara

    What you need to do is confirm that you’re able to get a 200 response from the websmithing website. I have tested recently and confirmed that it’s working properly. Some cell phone companies *block* user applications from accessing the internet unless you become a partner (at a cost). Even if your web browser and other applications can access the internet is no guarantee that your app will so you need to test. The easiest way is to either set a breakpoint and see what the response is or use the Log function to print out the website response and see what code you get (200, 400 etc)

    Reply
  13. Tara

    erg. looks like my provider is the problem. So much for an easy solution. Thanks for the help, Nick, and I wish you the best with this project!

    Reply
  14. David M

    I am looking for a tracking tool that will populate a spreadsheet on a server with gps data from many phones. Is there a way to adapt this program to do this?

    Thank,
    David

    Reply
  15. Nick Fox Post author

    Hi David

    Yes, a lot of the functionality to do what you need is in this application. Currently it saves to a database. If I were you I would continue to save to a database and have your spreadsheet get location data from the database. That way it would always be up to date. You could also take snapshots of the data if you want to.

    Please note that the current application runs on j2me cell phones but not on Android or iPhone. If you need me to modify this application, I’m available for hire. Just let me know.

    Nick

    Reply
  16. Dinesh

    Hi Nick,

    Tons of Thanks for your sharing. Is this applicable for all phones like sony, samsung, etc or only for nokia which is java based? Also please send me your mail id, so that i can discuss more things in detail with you.

    Regards,
    Dinesh.

    Reply
  17. John Groves

    Hi Nick,

    I emailed you a couple of months ago and haven’t had chance to do much lately, however I was looking at it again and also looking at the license costs from Google. Have you had to pay the ridiculous fee’s to Google to use the Android app you wrote in order to use the Google maps? I was just reading through the T+C’s and I couldn’t believe how much it was. Send me a quick email if you like, I’d be interested to know how you got around it if you did :o)

    Reply
  18. Nick Fox Post author

    Hey John

    That’s a very good question and one I want to address publicly. The android app and mycelltracker.com website is free and has always been free and available to everyone. Therefor I am not breaking Google’s terms of service regarding Google maps.

    Nick

    Reply
  19. ULISES

    I find it interesting its application, my problem is I have not been able to import GPSTracker2.sql, my error tables: CREATE DEFINER = `root` @ `localhost` PROCEDURE `prcGetRouteForMap` (I could not interpret the change suggested by ReadMe. txt
    ” If You are using phpMyAdmin, you May Need to change the import file. Look at the stored procedures in the GPSTracker.sql file, this is the first line of one theme:

    CREATE DEFINER = `root` @ `localhost` PROCEDURE `prcDeleteRoute` (

    If phpMyAdmin complains about Trying to intall the 4 Routines, Then remove the DEFINER of all 4 Routines like this:

    CREATE PROCEDURE `prcDeleteRoute` (

    Should They install then. The data.sql file contains sample data.”
    I tried to import but does not work in any way

    error: http://uchlsistemas.com/gps/GPSTrackerPhp/Website/GPSTracker/getroutes.php

    $mysqli->multi_query: PROCEDURE yjzc0443_gps.prcGetRoutes does not exist

    Reply
  20. kean

    hi tryin ua app to use it with my project and stl get the 404 response code even after reading all your posts please help

    Reply
  21. kean

    hi the displaymap2 works when i use your databases but doesnt work when i create my own even after changing values in dbconnect2.php
    please help

    Reply
  22. Nick Fox Post author

    That can happen for a few reasons. The first may be this. The database/webserver could be in a different part of the world and therefor a different timezone. That happens with me. My server is Texas and I’m in Washington. Check the times of the phones also. Need to start by looking at the records in the database, at the times you are getting.

    n

    Reply
  23. Leandro Danipo

    Hi we are putting together a game, and I would like to know if using your app we could track 20 phones at the same time, the players will authorize to be track the day of the game, we will track them in a your map, it will be on a small town 5miles square area.
    Please let me know if we can contact you directly.
    Best regards
    Leandro Danipo

    Reply
  24. Leandro Danipo

    Hi we are putting together a game, and I would like to know if using your app we could track 20 phones at the same time, the players will authorize to be track the day of the game, we will track them in a your map, it will be on a small town 5miles square area.
    Please let me know if we can contact you directly.
    Best regards
    Leandro Danipo

    Reply
  25. Nick Fox Post author

    Hi Leandro

    This project is *very* basic. Just a bare-bones how-to on how a phone can communicate with a website. It could be used as the basis of a game but it would take a lot of reworking. I wrote the app several years ago and it doesn’t use any modern frameworks like jquery which it should use. So, it would require a lot of work, but the idea is right.

    Nick

    Reply
  26. Mike L

    Hi Nick,

    Excuse my ignorance!

    Does this software allow me to track my own mobile phone and watch / host it on my own desktop PC live? If so the phone data sends a data stream via GPRS to a specific port on my PC where is that in the program? I guess I’ve got it all wrong and it won’t do what I want 

    Regards

    Mike

    Reply
  27. Nick Fox Post author

    Hey Mike. The cell phone will send gps data to a website on the internet. If your desktop PC has a static i.p. address then yes, you could view your own location live on your PC.

    Nick

    Reply
  28. Mike L

    Hi Nick

    Thanks for the response I’ll take a look at your php files tonight and see if I can find the port settings etc.

    Regards

    Mike

    Reply
  29. Gary

    Hi Nick, I’m a total newbie to this; but here’s my problem; my mother has dementure and has habit of going of on walk about and getting lost and my father is 81 so it’s hard work for him to go chasing allover to find her and unfortunately I’m not close by to help out; so here is my question. Would my dad and I be able to utilise your software/system to track my mother so that when she goes off he can find her quickly and keep her safe?
    Kind regards

    Gary

    Reply
  30. Zuhry

    Hi Nick…

    First of all Tons of Thanks for your sharing
    I’m a computer science student where i’m planning to do my final year project in title of “Live Railway Tracking System” and so far had done all the webserver config with wamp and hosting with free dyndns. Also the website working in public smoothly.

    i have installed the j2me (jar) on ma phone and tried to pump the coordinates to phpmyadmin database.

    problem is i’m receiving an error as
    Getting map once a minute…
    GPS.getLocation: java.lang.
    NullPointerException

    above error message is continuing and my phone is nokia e72. even though i test with your webserver (www.smithing….)same issue..

    need a fix for the above issue
    please help
    kind regards
    Zuhry Fayesz

    Reply
  31. NTMS

    Hi

    I have HTC HD2. Do you have any miglet that runs only in phone using gps and data service with pocket google map, without any other server.

    Δ± want to track only when I will use the miglet to see where the person is. I dont want to use track of record, just the time start the miglet.

    I thank you for your help.

    Regards,
    NTMS

    Reply
  32. Kevin

    Hi Nick, first of all thank you for the great application, but I really confused my mind. I download GPSTrackerPhp and we have 3 folders in .zip file which are Website, Database, and Phone. I have ftp server, Wampserver, and Nokia5800 Xpreess Music, also i did every step which explained in the read me file, and got my google api key. But I don’t know what I’m doing know. Can you explain me step by step what should I do to run this program.
    Thank you for kindness..

    Reply
  33. Ronald

    Hi nick

    just a noob question here.
    i have here on my pc vb.net 2010 but it seems to be not reading your .net files should i use visual studio 2005 or i just need a third party program? i can’t compile your whole program pls help

    Reply
  34. hardan

    I have a cell phone Samsung s8300
    I run the file it works for me cell phone but he says all I need getgooglemap2

    Reply
  35. Eduardo

    Hi Nick, I’ve already lift his project and compile from Netbeans IDE 7.2.1, and under the application to the phone and intala well, I install it on a model BalckBerry 8900. after setting the user frequently than 1 minute GPS.Location gives me this error: java.lang.NullPointerException. How I can fix this and it works for BB phones. Thank you.

    Reply
  36. Lee (TucsonDirect)

    Wow i havent been to this site in Awhile!
    just dug this program out of the bin and cant get it to load routes. πŸ™
    If i recall its a problem with sql procedures

    Reply
  37. peadar

    Hi Lee, I also was messing with this recently with an old nokia e51…old age is settling in πŸ˜‰
    anyway, i had to rework the procedures on the new mysql db (which was loaded as a routine on my old db) to work properly.
    mail me if you have any difficulties.
    peter hamer 1 at g mail dot com (minus the obvious spaces)

    Reply
  38. Lee (TucsonDirect)

    Peadar i did resolve the issue it was two part, Needed new API key, and like you said the procedures needed some adjustments πŸ˜‰
    my E-mail is tucsondirect at gmail com

    If you are interested in a newer project, Check out Traccar

    Reply
  39. John Anderson

    Hi Nick, “Google Map GPS Cell Phone Tracker” is this software track any phone, and the apps doesn’t have to be installed on the phone , Also do you have a link to the latest package. I am unable to access “Tracker2” on ur webpage. its asking for a password. Thank in advance.

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *


This site uses Akismet to reduce spam. Learn how your comment data is processed.