Skip to content

AceCentre/MileageCalculator

Repository files navigation

Mileage Calculator

What does this do?

It provides a box for the user to paste lines like:

	OL8 3QL to BR48lW to SW11DR to OL83QL
	OL83QL to  L171DW to OL83QL

and hitting the 'Go' button it will return the mileage between these points.

Demo of MileageCalc with Excel

How?

By the power of Greyskull!

(No, really: Google Maps API, and the MapIt API)

Why?

To help me fill in my expense claim forms. I was bored having to copy and paste loads of postcodes into google maps so I instead wasted twice as much time making an app to do it for me.

Note

We round up to the nearest whole mile. Hope thats ok with you

Deploy

  • You will need a Google Maps API Key environmental variable (named 'GAPI_KEY')
  • You will also need a MapIt API Key environment variable (named as 'MAPIT_KEY')
  • You should set a port environmental variable ('PORT" = 33507)

Deploy