Route is now ended automatically if the given point matches the first
point exactly.  finishRouting() triggers a dblclick event using leg 0.