Post by iconPost by GeGaX | 2018-01-21 | 17:10:12

Hi Cvetan;),
Would it be complicated to set up a new function for the router, namely an export of the route in .gpx format ?

commenticon 7 Comments
Post by iconPost by toxcct | 2018-01-21 | 17:16:45
I can already hear glugwort moaning that you are planning to cheat again ^^
Post by iconPost by zezo | 2018-01-21 | 19:50:44
I've always had one concern about raw export and that's the noise in the data, but your extension show that it's not that bad.

Well, it's filtered data from the black dots, not the actual router output, but if you are going to use other tools the raw output will also work.
Post by iconPost by GeGaX | 2018-01-21 | 21:12:52
Could you tell me more?
Do you think it is possible to generate a gpx file from add-on Route zezo.org ?
If so, I will focus on that.
Post by iconPost by GeGaX | 2018-01-21 | 22:44:14
I watched how is built a gpx file, I can not generate it because I do not have the GPS coordinates of the points
It would be possible if the coordinates were available in the code extracted by route zezo.org, you would agree to set it up for a race (Trophy Jules Verne for example)?
Post by iconPost by zezo | 2018-01-22 | 17:52:21
The coordinates can be extracted from the dot image x/y offsets. The accuracy depends on the zoom level, of course, but it has been done before.
Post by iconPost by kikouic | 2018-01-23 | 05:47:34
coordinates extracted from the dot image x/y offsets

scale extract from var scale

lat = 90 - (top_value_px + 2)/scale

lon = (left_value_px + 2)/scale

if lon <= 180

lon = (left_value_px + 2)/scale

else

lon = (left_value_px + 2)/scale - 360





Post by iconPost by zezo | 2018-01-23 | 07:00:28
Something like that. server-side it's

$hints{X}=round(($lon + 360 * $idl * ($lon < 0))*$scale-2);
$hints{y}=round((90-$lat)*$scale-2);

wher idl is a magic variable depending on hemisphere (both start and destination)

You can normalize the longitude just by adding 360 if < 180 and subtracting 360 if > 180
border
Topics list
Posts
border
5
border
border
Copyright 2009 by ZEZO.ORG. All Rights Reserved.