         $scope.markers = []
 
         for result in results
-          geocoder.geocode("#{result.street}, #{result.city}").then (location) ->
+          geocoder.geocode("#{result.street}, #{result.city}, #{result.state} #{result.zip}").then (location) ->
             result.lat = location.lat()
             result.lng = location.lng()
             $scope.addMarker(result)

  $scope.selectResult = (result, index) ->
    $scope.selectedResult = result
    $rootScope.clickMarker(index)
    console.log "Selecting #{index}"

  $rootScope.selectResultByIndex = (index) ->
    console.log "asdf"
    $scope.selectedResult = $scope.results[index]

  $scope.search = ->
    $scope.orderByRatings = false
    console.log "false"
    $location.path("/search/#{$routeParams.operation}") if $routeParams.operation

  $scope.searchRatings = ->
    $scope.orderByRatings = true
    console.log "true"
    $location.path("/search/#{$routeParams.operation}/rating") if $routeParams.operation
]


  $scope.$on '$locationChangeSuccess', (event) ->
    $scope.selection = $window.location.hash.split("/")[2]
    $rootScope.page = $scope.page = $window.location.hash.split("/")[1]

  # Markers should be added after map is loaded
  $scope.onMapReady = =>
