Corrected the "for" cycling on route points in the example

The example "for" cycle on the points in the routes contained a small error.
This is my first request, hopefully it's clear enough. 
The modification is of marginal importance, but the example code doesn't work as it is now.