When we're driving and our gas is running out, we don't want to look at our phone to find the nearest gas station. We also don't know if a mile from now there will be a cheaper gas station.

What it does

With the new OnStar technology from GM, they know where we are and where we want to go. Our app will use that information and find the nearest and cheapest gas station that we will pass along the way.

How we built it

  1. Get car data from GM (starting location, remaining miles, destination).
  2. Allow user to specify their gas station preference.
  3. Find all gas station along the route that is within a certain range of detour.
  4. Find the cheapest and nearest gas station when their gas is running out.
  5. Display it as a midpoint on the map where the GPS will automatically tells you to go.

Challenges we ran into

  1. Dealing with longitude and latitude coordinates.
  2. 3 out of 4 members never used javascript but our app is using almost pure javascript.
  3. Finding API for gas dataset.
  4. Not getting enough sleep.

Accomplishments that we're proud of

  1. Come up with formula for the earth coordinates.
  2. Application actually runs and works!
  3. Stay awake for most of the 34 hours hacking time without coffee!!
  4. Eat every 3 hours ;)

What we learned

  1. How to utilize Google Map API.
  2. Earth is round, not flat.
  3. Sleep is optional and food can keep us awake.

What's next for gas

  1. Improve algorithm for finding the gas station.
  2. Improve response time.

Built With

Share this project: