Realistic mileages
Author
Discussion

Gazunder

Original Poster:

58 posts

191 months

Wednesday 21st August 2013
quotequote all
Does anyone know of a website which uses an actual/realistic mileage between the site user and the thing they're looking at, rather than an 'as the crow flies' approach?

Or, if no live examples, can anyone comment on the ease or viability of delivering sensible distances between postcodes for website users?

stevenjhepburn

291 posts

160 months

Wednesday 21st August 2013
quotequote all
...Google?

surveyor

18,708 posts

215 months

Wednesday 21st August 2013
quotequote all
Won't do website, but I've just installed one of these.

http://www.milelogik.com/

It beeps when I set off, push a button for business miles or leave for personal. Plug in once a month and I have a full log of miles covered (not just start and stop). Rather pleased.

BIRMA

4,285 posts

225 months

Wednesday 21st August 2013
quotequote all
surveyor said:
Won't do website, but I've just installed one of these.

http://www.milelogik.com/

It beeps when I set off, push a button for business miles or leave for personal. Plug in once a month and I have a full log of miles covered (not just start and stop). Rather pleased.
That is brilliant, saves buggering around with an A4 piece of paper to record the journey.

surveyor

18,708 posts

215 months

Wednesday 21st August 2013
quotequote all
I reckon it will pay for itself just in small journeys that I might not even bother recording...

Gazunder

Original Poster:

58 posts

191 months

Wednesday 21st August 2013
quotequote all
Maybe I wasn't clear in my question, I want to have functionality in a consumer site which tells one user how far they are away from another.

I don't want 'crow flying' distances though.

The Moose

23,710 posts

240 months

Wednesday 21st August 2013
quotequote all
Is this going to be a one-off thing on the page (i.e. find the distance between you and this shop at this postcode), or are you going to be comparing with a load of different postcodes (i.e. finding you your nearest Tesco)?

IIRC (haven't looked into this in a while but...) The reason these systems give you the distance as-the-crow-flies is because it calculates it from the differences in lat and long co-ordinates and with that in mind, if you want to find the nearest Tesco, it's relatively easy to calculate this for each option whereas to find the actual driving distance is much harder and could potentially take ages.

The first option (driving distance between 2 places) is reasonably easy using an API for one of the several services available to you.

The second option (finding your nearest [x] out of a long list) is more difficult - you could do it with some sort of API, but (again, IIRC) the API providers were charging quite a lot if you did more than a certain number of trips.

Hope this helps!

ETA: Once again, IIRC there's a formula you could use - a multiple if you will that'd approximately work out the driving distance based on an average around the UK, but I would have no idea as to what it is...or if I just dreamed that! hehe

Edited by The Moose on Wednesday 21st August 14:29

Gazunder

Original Poster:

58 posts

191 months

Wednesday 21st August 2013
quotequote all
hi - thanks for the response Mr Moose

It will involve multiple point-to-point calculations. The user will give their postcode at sign-up, and when they visit each other user's page they will see how far they are away from them.

The Moose

23,710 posts

240 months

Wednesday 21st August 2013
quotequote all
No problem.

IIRC, there are some APIs out there, but if there's any serious volume, it'll be expensive.

For what reason are you trying to do this? What is the site's main purpose?

The Moose

23,710 posts

240 months

Wednesday 21st August 2013
quotequote all
Just found some notes - The Google Directions API - you can do 2,500 requests per day.

Or if you pony up some cash, up to 100,000.

HTH

Gazunder

Original Poster:

58 posts

191 months

Wednesday 21st August 2013
quotequote all
The Moose said:
Just found some notes - The Google Directions API - you can do 2,500 requests per day.

Or if you pony up some cash, up to 100,000.

HTH
Hmmn. I need something cost effective in the millions of requests per day arena smile

The Moose

23,710 posts

240 months

Wednesday 21st August 2013
quotequote all
Gazunder said:
The Moose said:
Just found some notes - The Google Directions API - you can do 2,500 requests per day.

Or if you pony up some cash, up to 100,000.

HTH
Hmmn. I need something cost effective in the millions of requests per day arena smile
By cost effective, do you mean free?!

Good luck - the processing power to do millions of requests per day will be rather large (depending on distances also). I'd suggest that this will be hard to find...

The Moose

23,710 posts

240 months

Wednesday 21st August 2013
quotequote all
What is it you're actually trying to do?