General options

Coordinates
Address
Measurement Units

Route summarytotal: 0

    CodeGEN

    For usage instructions and examples, click here

    Start Loop End

    RouteGEN

    Number of points

    max. 100

    Points positioning
    inside current viewport
    relative to map center
    advanced
    km
    km
    Sorry, this feature is not supported by your current browser

    CodeGEN is a very simple mechanism. It just replaces some special characters within the text areas with distance or geographical information. As you can see from the diagram, contents of the start and end text areas are used only once, whereas the contents of the loop text area are used n times (n = number of route points).

      In the start and end text areas the following special characters can be used:
    • *numberPositions* - will be replaced by number of route points
    • *totalDistance* - will be replaced by the total route distance in km


      In the loop text area the following special characters can be used:
    • *lat* - will be replaced by the latitude of the current loop point
    • *lng* - will be replaced by the latitude of the current loop point
    • *index* - will be replaced by the current loop index
    Start
    Loop
    End
    Result
    The configuration on the left will result in the code on the right
    Start
    Loop
    End
    Result
    The configuration on the left will result in the code on the right