Help with Location Sensor for my School's shuttle system

In addition to the suggestions provided in Taifun's post

Things to consider:

  • Speed calculation requires that there be at least 2 LocationChanged events must fire prior to providing a value.
  • checking and or posting location etc. every 2 to 3 seconds may be impractical. The LS doen't get an updated satellite fix that rapidly.
  • Factors like Accuracy of the satellite fix need to be considered. Perhaps you need to not use satellite fixes > than about 10 meters when you display locations.
  • Your app does not have a StayAwake route or a Foreground or Background capability. When your reporting screen goes to sleep, it might go to sleep.
  • Your Clock might be firing too frequently (3 seconds :wink: )to capture all the data you are collecting.
  • Where are you getting the heading information from? Are you using an extension (the LocationSensor doesn't provide a heading but some extensions do.
  • you might re-read Using the Location Sensor

Were you posting to a Map using Map component or just reading the latitude/longitude?

Apps like this usually require access to the app in order to be debugged

Here is a tutorial (made a long time ago that works) that shows a way to post a bus (shuttle) location How to broadcast a GPS location and share the information on a map with others in real time..CloudDB Perhaps there are some ideas you can use?