You are reading a single comment by @moocher and its replies. Click here to read the full conversation.
  • thanks everyone

    @sifriday

    Are you planning a festive bike ride?

    I thought it might be fun to see what a circular route, based on the length I can ride in a 12 hour period, visiting each of the hour points on the way would look like.

    More generally, to plot a circular route of distance D, starting from and returning to x,y. You might want your starting point to be at 12 if all of your good riding was to the south, or 3 if all the good stuff was to your west.

    I should be able to plug the output from your code into komoot or similar and get it to show me the route

  • nice! in which case here's a new version of the fiddle that will render a 'download' link and if you click it then it should download a basic GPX to make it easier to go into Komoot etc -

    https://jsfiddle.net/nu93ptog/1/

    to try different point, then turf.transformTranslate uses decimal degrees so it currently has 0 for north... if eg you wanted the start point to become the 3 o'clock point of the circle then you'd need to move it to the west by the amount radius to become the circle centre so use 270 instead of 0

    and when changing the start point, if you don't know GeoJSON already, then watch out, because it uses [x,y] coordinates, ie [Lng,Lat] rather than the more familiar [Lat,Lng]

About

Avatar for moocher @moocher started