   out;
   """
 
+route_params = (from, to) ->
+  "from_lat=#{from.lat}&from_lon=#{from.lng}&to_lat=#{to.lat}&to_lon=#{to.lng}"
+
 findClosestTo = (origin, parsed) ->
   minDistance = 1000
   found = null

        found = findClosestTo(latlng, JSON.parse(body))
        if found?
          L.marker(found).addTo(map)
        else
          # TODO: change this to a nice error message
          console.log("no ways next to #{latlng}")

    attribution: '&copy; <a href="http://osm.org/copyright">OpenStreetMap</a> contributors'
  ).addTo(map)

  prevMarker = null
  map.on('click', (ev) ->
    latlng = ev.latlng
    console.log(latlng)
