Gps Tracker for WordPress

This is my new Gps Tracker wordpress plugin. It’s 100% responsive using Twitter Bootstrap. Responsive means that it displays properly on any screen from a cell phone to a tablet up to a desktop.

It also uses leaflet. This allows you to change map providers on the fly. Try the button in the top right hand corner of the map. You can switch between OpenStreetMaps and Google. There are many other providers as well.

If you want to check out the plugin, you can download it directly from WordPress.

And from your Android phone, you can download the client from Google Play. Please note that you must use the WordPress version of Android Gps Tracker and not the open source version. The reason for this is because the WordPress version uses nonces which adds extra security.

I want to explain how Gps Tracker works. When it first loads, the most recent location of all active devices is displayed. The one in red is the most current gps location in the database. If you owned a company with several trucks out in the field, you would be looking at the location of all your trucks. Now suppose you wanted to see where a particular truck has been. The way to do that is to tap on one of the markers or select a route from the dropdown box under the map. They are just two different ways to display the history of a route.

If you tap on the “View All” button, you will once again be able to see all of your trucks. If you tap on the “AutoRefresh” button, you will be able to see all of your truck routes updated in real time every minute. I think that covers the needs of most people. If you need something custom, please feel free to contact me on my Hire Me page.

83 thoughts on “Gps Tracker for WordPress

  1. steve burch

    I need to package your features and benefits into event planning for our audiences.
    I am computer illiterate.
    I am writing in hopes that you and I can speak directly.

  2. Baz

    Hi Nick,
    I think your app would add another dimension to my site and be awesome for getting in-the-moment suggestions.
    However, I downloaded the plugin and as soon as I turn it on, it messes up my navigation menu in the top bar (the menu totally disappears). This happens whether I have displayed any of the shortcode anywhere on the site or not.
    This is the first site I’ve built, so I am not a pro, but am wondering if this problem has come up in the past?
    And is there a simple solution (or a video tutorial you could direct me to) which might cure the problem.

    I am using the latest wordpress 4.1.1, with Customizr Theme 3.3.1

  3. Luis

    Hi:

    Geat, fast and easy to setup even plugin as app, great job.

    Now a suggestion:
    May be you can implement a new feature in the app, start/stop tracking when the cell phone connects/disconnects to a defined bluetooth device.

    1. Nick Fox Post author

      Luis

      Thanks, I’m glad you got it working. I am actually updating GpsTracker right now but in the past ten years only a couple of people have asked for bluetooth device support. If you want to write the software for that and do a pull request in github, I’d be happy to look at it.

      n

  4. Phil Doragh

    Hi
    Would this work for friends and family to track our progress on a charity bike ride?
    cheers

    1. Nick Fox Post author

      Hey Phil

      Yes, that would be an excellent use case for gps tracker. A client recently did just this thing for a car show that he sponsors down in California. The android client works quite well but in order to use the iphone client, you must distribute the beta app in itunes connect using TestFlight. Apple will not allow you to put gps tracker into the app store because they do not feel it provides enough functionality. But you can distribute it up to 1000 users using TestFlight beta.

      n

      1. Phil Doragh

        cool. thanks for the swift reply, too ๐Ÿ™‚
        could they follow through the ride bog, too? (if I install the plugin)

  5. Tilman

    Hello Nick

    I downloaded the plugin and the android client. It does not seem to work.
    – The database tables wp_gps_locations and wp_gps_logger were created. After deleting the sample tracks, they are now empty.
    – I can see the GET request from the android tracker in apache2/access.log.
    “GET /wordpress/?date=2015-05-03%2B23%253A23%253A41&distance=0.0&latitude=-33.4444465&…..&direction=0
    – I use the latest version of wordpress, V 4.2.1, and gpstracker 1.0.2
    – My gut feeling tells me that the data insertion into the database fails. I have however no idea how to debug this. Is there a debug log somewhere ?

    Thanks

    Tilman

    1. Tilman

      Hello Nick

      I dag a little bit into it:
      The android client seems to sent a request that is not compatible with the wordpress gps tracker plugin:
      a) There is a slash to much: โ€œGET /wordpress/?
      b) looking at class-gpstracker-endpoint.php, there seems to be a parameter gpstracker expected that the android plugin does not sent.

      Can you kindely comment ?

      Thanks
      Tilman

    2. tilman

      Hello Nick

      I realized that there are 2 versions of the GPS-Tracker that can be downloaded via google’s play shop. Using gps tracker for wordpress, it works.

      Regards
      Tilman

  6. tyler

    Hi Nick,

    I am backpacking through south america and want my followers to be able to track where i am currently. i installed the plugin and the map shows up but defaults to showing just seattle. I have installed the app and it says tracking is on but it doesnt seem to show on the site. the map never changes away from seattle. Any help?

  7. serdar

    Hi Nick,

    Thanks for your effort; Very good job. I installed both android application and plugin but could not get it worked. I can see the locations added on the database but they are not shown on the page. Could you please check my webpage?

    Regards,

    Serdar

    1. Melody

      Same here! First I downloaded the GPS tracker app. Then I had to download the plugin. Then it said I had to download the GPS Word because I’m using an Android. Nothing is working…

    1. Nick Fox Post author

      This is probably a permissions problem with the database. Can you please give me the URL of your display map.

      thanks
      n

  8. Marco Aurelio

    Thanks!! I have reinstalled the plugin and put default map OPEN STREET MAP
    I ask you another question:
    Can i visualize only the final destination and not the other old route of the same user?
    thanks

  9. Michelle

    Hi Nick, I’d really like to use your fantastic plugin to track our charity Santa whilst he drives his sleigh around local housing estates next Sunday. Everything works great, wonderful job ๐Ÿ™‚ but the gui zooms very far out upon refresh (I can see the whole of Europe when the map refreshed when I really need it at street level). I have a basic understanding of php however have never worked with Google maps, I’d be very grateful if could you point me in the right direction please? Thanks x

    1. Michelle

      Nevermind! A bit of reading on the Leaflet website and it’s sorted (the commented out line at 188 on gpstracker-map.js got me started) thanks for the excellent plugin ๐Ÿ˜€

      1. Saslo

        To make the change on wp this would be the following file ?
        /wp-content/plugins/gps-tracker/public/assets/js/gpstracker-map.js

      1. Saslo

        Thanks for feedback @ Nick!
        The result is that it is stretched horizontally. With 2 rows and a single column as shown here. alignment is off >> http://i66.tinypic.com/15q2ij6.jpg

        —————————————————————————————————–
        var popupWindowText = “” +
        ”  ” +
        “” + lastMarker +
        “Speed: ” + speed*1.609 + ”

        kph” +
        “Distance: ” + distance + ”

        km ” +
        “Time: ” + gpsTime +

        “” +
        “UserName: ” + userName +

        ” ” +
        “Accuracy: ” + accuracy + ”

        ft “;

          1. Nick Fox Post author

            play with the number. I just threw out 200 as a starting point. Try 150 or 100 until it looks right.

            n

  10. Chris

    Hello Nick,
    Great work.
    Only one question.
    Can i visualize only the final destination and not the other old route of the same user?
    Can I download or print gps information. ?

    Thank you again

    1. Nick Fox Post author

      I think the easiest way is to alter the sql. select the top 1 in ascending order. I think that will do it.

      n

    1. Nick Fox Post author

      Did you go back and reread the second part of my original answer and check out the answer on stackoverflow that I suggested?

      n

      1. alain

        Hello,
        Super plugin bravo. I would like to make two modifications:
        – Change the date format => (day, month, year)
        – Integrate the pin address in infowindow
        Is it possible ? Thank you for your return.

  11. Saslo

    Also can we get it to draw a line, along the path (green markers to join them, so it looks like a track/line) as opposed to green marker separate. That would be wow, just awesome! Keep up the good work @ Nick!

  12. Chris Virgo

    Hello.
    I am very interested in using this plugin but when I activate it in my wordpress is messes up the style of the page. a couple menus get moved around and it renders it useless. I could send you a picture of the site if you wanted but as its active i cant just leave it up. Thanks in advance

    Chris

  13. Guillaume

    Hi,

    Your plugin is very useful but when I activate it the main text in all my website page turn into light grey !!! Do you have an idea to avoid this ?

    Thanks

    1. Jin Park

      Hi there,
      It is a great plugin. I installed your plugin and the database tables wp_gps_locations and wp_gps_logger were created. But the map is not displayed for the tracking information from mobile phone. And wp_gps_location table has only 30 records. Is it possible to extend the number of records on wp_gps_locations table.

      Thanks a lot.

    1. Nick Fox Post author

      Hey Sash

      It will work for localhost, but it still needs to be connected to the internet to get the maps. You need to figure out the IP address of your computer. It’s been a few years since I’ve done it but it is possible.

      n

  14. Matt

    Hey Nick,

    I saw that someone had asked about plotting just the end destination, rather than a trail of markers, and while I saw your reply and looked through the code, I wasn’t able to locate where to change it to plot one point in ascending order. Could you point me in the right direction?

    Thanks!

  15. Mitch Mandell

    Hi Nick, Another WordPress user here and I’m having a problem getting the tracking going. I just did a fresh WordPress install and have only your plugin loaded. I created a page and placed the shortcode, then I downloaded the android app, set my username and url. When I view the page with the shortcode, I get just the map frame with a blank map and the message that there is no tracking data to view. Refreshing the map or reloading the page does not help.

    The page url is http://www.vidivent.com/mitch

    Am I missing something on the setup?

    Thanks.

  16. Mitch

    Hi Nick, Another WordPress user here and I’m having a problem getting the tracking going. I just did a fresh WordPress install and have only your plugin loaded. I created a page and placed the shortcode, then I downloaded the android app, set my username and url. When I view the page with the shortcode, I get just the map frame with a blank map and the message that there is no tracking data to view. Refreshing the map or reloading the page does not help.

    The page url is http://www.vidivent.com/mitch

    Am I missing something on the setup?

  17. alex

    love the app. but i have this error any help please

    http://jjl01.cloudapp.net/gpstracker/updatelocation.aspx

    Server Error in ‘/GpsTracker’ Application.

    Object reference not set to an instance of an object.

    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.

    Source Error:

    Line 12:
    Line 13: string latitude = Request.QueryString[“latitude”];
    Line 14: latitude = latitude.Replace(“,”, “.”); // to handle European locale decimals
    Line 15: string longitude = Request.QueryString[“longitude”];
    Line 16: longitude = longitude.Replace(“,”, “.”);

    Source File: c:\inetpub\wwwroot\GpsTracker\UpdateLocation.aspx.cs Line: 14

    Stack Trace:

    [NullReferenceException: Object reference not set to an instance of an object.]
    UpdateLocation.Page_Load(Object sender, EventArgs e) in c:\inetpub\wwwroot\GpsTracker\UpdateLocation.aspx.cs:14
    System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +51
    System.Web.UI.Control.OnLoad(EventArgs e) +92
    System.Web.UI.Control.LoadRecursive() +54
    System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +772

  18. ramtin

    hey man…first of all, thanks for this great plugin
    is there any way ,we can sort users tracks by date?
    we choose specific date and map show tracks of that day
    can you help me on this?

  19. Hubert

    Helo Nick

    The WordPress version updates only every 5 minutes, instead of every minute , as I would like it to. By design or just a bug?

  20. Alex

    Hello Nick,

    Another Alex here. Searching for a simple solution to post an hourly location of a group of people on a month long “demonstration” walk. I feel like this could be it, but am not savvy at navigating WordPress installation and changing code where needed. I can tell that you have a strong grasp of the interworking of GPS tracking and location reporting and might have an idea which app, if not this plug-in, would suite my needs. Visit 33daysontwin66.com to see the route map that we want to track and post our progress on.

  21. steve

    Nick;
    I se in the screenshots that there are additional duration’s in the time select. I have the app and site working but there seems to be a cutoff at 15 minutes. Is this something that can be adjusted?
    BRGDS
    Steve

Comments are closed.