Public transport/Tracking tutorial

From OpenStreetMap Wiki
Jump to navigation Jump to search

This little tutorial aims to provide an easy way to track public transport services. There will be published another tutorial about proper public transport mapping conforming to Public transport v2.

Disclaimer: There are a lot of mobile apps available to track public transport services, here will be used OsmAnd, one of the most used Android applications, nevertheless there are other apps that are also available to use.

Preparing your Android phone

  1. You can get OsmAnd from the Google Play Store, their official website or the alternative app repository on F-Droid.
  2. For starter, OsmAnd will suggest you an area to download. If you wish to track public transport in a specific country or region (ex. Nicaragua), go on and "download" the map. If not, "select another region" and download the "standard map".
  3. Once the download of your region is completed, OsmAnd will automatically start to download the "World overview map" which we recommended you to have.
  4. After successfully downloading the map, open the menu at the bottom-left corner, go to "Plugins" and enable the "Trip recording" plugin.
  5. Go to "Configure screen" in the app's menu, enable the "Quick action", add the item "Add GPX waypoint", enable the "interim dialog" and tap on "Apply".
  6. Tap on the "Configure map" icon at the top-left corner and then on "Transport", enable "Transport stops" and the corresponding "public transport routes" that you wish to map. Also, it is recommended to enable "Point labels" to see the name of the stops you will create.
  7. Activate your device's GPS and check that OsmAnd shows your current position on the downloaded map.
You are now ready to start tracking your public transport route!


Get on the bus/train/ship etc.

  1. Go to the first stop of the public transport service you would like to track and ensure you will have the possiblity to note down the names of the stops while you are passing them (any timetable, sign, display or audio inside the public transport vehicle or ask a person who knows the names to help you).
  2. Turn on your GPS, open OsmAnd and sit down at the window's side to ensure good GPS connection.
  3. Once the public transport service starts, tap on the "GPX" button at the top-right, "start GPX logging", choose your prefered "Logging interval" (recommended: 5 seconds) and the option "Show on map" to track your journey. Note the red circle on the "GPX" button and the red line that will show you your transcured way while your public transport vehicle is in motion.
  4. Center the map by your GPS position by tapping the symbol at the lower-right corner and then tap on the "Quick action" symbol and "Add GPX waypoint" to add your first stop. Do not forget to give it the corresponding name (ex. COTRAN Sur).
  5. For each public transport stop, do the same as above, search or ask for the name and mark the position as a "GPX waypoint". Remember that your waypoint's name has not to be well written, it's only important that you (or the person who will map the route afterwards) understands what you mean.
  6. Reaching the final stop, assure to mark it as waypoint, too, and tap on the "GPX" button (that now shows your travelled distance) in the upper-right to "Stop GPS logging". Tap the same button another time to "Save current GPX track".
  7. Go now to "My Places" > "My Tracks" and search for your newly recorded track in the "Rec" folder, open the file menu on the right side and give it a significant name. You can also "Analyze on map" to ensure all worked well (you should see a red line from the start to the end point with several star symbols on the way, featuring the stop names.


Copy tracks to your PC

(1) The recorded GPX Track
  1. Now it's time to copy your recorded journey to the PC from which you want to upload the public transport route to OpenStreetMap. You should find your newly created *.gpx file inside the 'Android/data/net.osmand.plus/files/tracks/rec' folder and you can copy it via USB, Bluetooth, E-Mail or whatever.