OpenStreetMapX, folium

for k ∈ length(routes)

This iterates only the single number routes, classic Julia footgun :slight_smile: (numbers can be iterated as single-element collections)

You need for k ∈ 1:length(routes) or for k ∈ eachindex(routes), for example.

1 Like