I must do some verifications of the length on some roads in Romania.

I made the track of the roads and a program to read the track saved as gpx by RouteConverter.

I need the distances between the track points and their elevation.

Since the copy feature in the PositionList of RouteConverter copy to clipboard only Long, Lat and Description (should copy also dist & elevation), I must calculate distances from the gpx file.

My problem is:

-distances calculated by me with various methods ARE DIFFERENT from the distances shown by RouteConverter in the PositionList.

The differences seem random(generally smaller but NOT always).

I get differences of hundred meters on tracks of hundred Kilometers.

On small tracks, I don't have differences.

In the cosine and haversine formulas, I use the earth radius for Romania, and I add also the elevation difference to the length distance calculations.

I do something wrong, I miss something or this is some "glitch" on RouteConverter?

If the RouteConverter formulas are proven accurate, can you manage to be copied to clipboard all the enabled columns in the PositionList ? This way, I don't need to re-calculate them and get the differences mentioned.

Can the accuracy of calculations be verified somehow?

Also the autocomplete elevation on new/modified points should be very useful. Or some pop-up asking on save?

Edit:

For example, 2 road tracks(different directions), with total length calculated by 3 programs:

RouteConverter EasyGPS MyProgram (R=6378137m)(should be smaller since Romania is not at Ecuator)

a) 642151m 642377.96m 641999.9m

b) 637646m 637746.13m 637418.8m

226.96m -151.1m

100.13m -227.2m

What (I do)/(is) wrong?

I can't give results with +/- 100m (every meter of a road cost about 1000$)

Thank you in advance for your patience and help!

I made the track of the roads and a program to read the track saved as gpx by RouteConverter.

I need the distances between the track points and their elevation.

Since the copy feature in the PositionList of RouteConverter copy to clipboard only Long, Lat and Description (should copy also dist & elevation), I must calculate distances from the gpx file.

My problem is:

-distances calculated by me with various methods ARE DIFFERENT from the distances shown by RouteConverter in the PositionList.

The differences seem random(generally smaller but NOT always).

I get differences of hundred meters on tracks of hundred Kilometers.

On small tracks, I don't have differences.

In the cosine and haversine formulas, I use the earth radius for Romania, and I add also the elevation difference to the length distance calculations.

I do something wrong, I miss something or this is some "glitch" on RouteConverter?

If the RouteConverter formulas are proven accurate, can you manage to be copied to clipboard all the enabled columns in the PositionList ? This way, I don't need to re-calculate them and get the differences mentioned.

Can the accuracy of calculations be verified somehow?

Also the autocomplete elevation on new/modified points should be very useful. Or some pop-up asking on save?

Edit:

For example, 2 road tracks(different directions), with total length calculated by 3 programs:

RouteConverter EasyGPS MyProgram (R=6378137m)(should be smaller since Romania is not at Ecuator)

a) 642151m 642377.96m 641999.9m

b) 637646m 637746.13m 637418.8m

226.96m -151.1m

100.13m -227.2m

What (I do)/(is) wrong?

I can't give results with +/- 100m (every meter of a road cost about 1000$)

Thank you in advance for your patience and help!