Function from drawing a route in a map