Geographic Data Web Service
Asked Answered
E

1

3

I am thinking about writing a program to check some mileage claims (about 45,000 of them actually) made by Members of the British Parliament recently.

The data I have is quite course - the origin and destination of the trips is generally provided only at the Town level. What I am looking to do is basically look at the mileage figures they have submitted, look at the "calculated" mileage obtained from a web service, and then compare / contrast. (I'm thinking of perhaps being interested in cases where the claimed mileage exceeds 40 miles, and the claimed mileage exceeds the website figure by a factor of at least 1.4 for instance).

Code wise I'm fine, but what I don't have is a webservice I can use to get the distances. Google Directions is out of the question (has to be used with Google Maps) - and I am looking at writing this as a console app in C#.

Can anyone suggest any suitable service?

Essam answered 8/2, 2011 at 19:15 Comment(4)
You might want to check out gis.stackexchange.com - someone there has probably attempted something similar.Attenuation
The google directions API is not what you want? code.google.com/apis/maps/documentation/directionsFootloose
The problem with Google Directions API is that what I want to do is explictly banned in the terms of use (as I don't want to display a google map...). Cheers anyway...Essam
Matt - checking into that now...Essam
F
1

You should take a look at any routing services that are using Open Street Maps. Many services based off of OSM are provided free of charge and are less restrictive than Google Maps.

One that I can think of is Open Route Service, though I don't know if they have a permissive API that allows you to do what you're asking.

If you are working for a government entity, many of them have licenses for Esri ArcGIS which includes a street data, turn-by-turn routing directions, and an API.

Fireproofing answered 9/2, 2011 at 0:57 Comment(1)
Helpful answer - and just about what I ended up doing before I saw yout comment. Wrote code to laynch a HTTP Request at their API, then parsed results with LinQ2XML...Essam

© 2022 - 2024 — McMap. All rights reserved.