Getting map distance between a lot of points


I have this little problem. I got a thousands of places in a database and I need to get map distance beween every two points. I got lat & longitude of all the points. But there are so many point in my databese that I can’t use some GUI app and just do it manually. I’m looking for some utility/library I could run from command line. I spent hours on this page but I could’n find working solution.

for example: I tried traveling salesman but it crashed during java -jar traveling_salesman.jar import mymap.osm with error “cant represent 214… as integer”…

I see startnode & endnode everywhere. How can I get these nodes from GPS?

I would be grateful for any sort of help.

If not happened already, you can also post this question to the OSM mailing list about “Routing” … see