       )
     , 200
     )
-    

    lang: "en"
    username: "matias"
    type: "json"
  
  local_value = store.get(location)
  
  if local_value?
    success(new google.maps.LatLng(local_value[0], local_value[1]))
  else
    window.setTimeout(->
      $.getJSON(url, geonames_options, (data) -> 
        if data["status"]?
          if data["status"]["value"] in [18, 19, 20]
            $("#error").text(data["status"]["message"]).slideDown()
        else
          $("#error").text("").slideUp()
          if data["geonames"].length > 0

    scaleControl: true
    streetViewControl: false
    overviewMapControl: false

  window.map_overlays = []
  window.google_map = new google.maps.Map(document.getElementById("map"), map_options)
  window.google_geocoder = new google.maps.Geocoder()
  callback()

get_shots = (url) ->
