3 Simple Ways to
Share What You Make

With Instructables you can share what you make with the world — and tap into an ever-growing community of creative experts.

PhotosPhotos

Share one or more photos of a project, recipe, or whatever you've made, quickly and easily.

Step by StepStep-By-Step

Share your step-by-step photos with text instructions of what you made so others can do it too!

VideoVideo

Share your how-to video. You'll need your embed code from a video site such as YouTube.

GPS Bus-tracking on the cheap

Step 4Define a route for your bus of choice

Define a route for your bus of choice
«
  • csv.PNG
  • get_lat_lon.bmp

At this point, the system has a good degree of functionality; we could still add some more features like predicting arrival times and simplifying the output information. 

To do this, we'll define a route so that users can know what landmarks are closest to a bus's current position.  We'll also calculate arrival times based on that position.

We want a a five-column comma separated value (CSV) file where each row is a waypoint along the route (see the screenshot below and the attached file for an example -- it should open in Excel or something like Notepad++).  Waypoints are entirely of your choosing (hello, Easter Eggs) and you can add any number of them to the file.  The bus I'm describing takes a linear A to B route one way and then travels B to A on the exact same roads.  The entries for each of my waypoints are as follows: 

title,
latitude,
longitude,
time in minutes to get to A from the waypoint,
time in minutes to get to B from the waypoint. 

Latitude and longitude can be determined with the industrious Simon Willison's www.getlatlon.com.

My time values are only placeholders at the moment; these values could be determined by timing a few rides manually or using a yet-to-be-written logging script for autonomous assistance.

This setup may be expanded in the future to consider buses that travel more complex routes (those routes not of the same-path A-to-B, B-to-A variety).

« Previous StepDownload PDFView All StepsNext Step »

Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!
1
Followers
1
Author:_mattb