parameters: (self, id_veh, coord, c_spread=2.0)
return_statement: return self.get_ids(ind_parking_closest), ind_parking_closest
docstring: Returns  parking space for  id_veh as close as possible to coord.
docstring_summary: Returns  parking space for  id_veh as close as possible to coord.
docstring_tokens: Returns parking space for id_veh as close as possible to coord .
function: def get_closest_parking(self, id_veh, coord, c_spread=2.0):
          """
          Returns  parking space for  id_veh as close as possible to coord.
          """
  
          #inds_person = self.persons.get_inds(ids_person)
          print 'get_closest_parking'
          ind_parking_closest = self.get_inds()[np.argmin(
              np.sum((coord-self.vertices.value[:, 1, :])**2, 1) + c_spread*lengths*self.lengths.get_value())]
          self.numbers_booking.get_value()[ind_parking_closest] += 1
          return self.get_ids(ind_parking_closest), ind_parking_closest
function_tokens: def get_closest_parking ( self , id_veh , coord , c_spread = 2.0 ) : #inds_person = self.persons.get_inds(ids_person) print 'get_closest_parking' ind_parking_closest = self . get_inds ( ) [ np . argmin ( np . sum ( ( coord - self . vertices . value [ : , 1 , : ] ) ** 2 , 1 ) + c_spread * lengths * self . lengths . get_value ( ) ) ] self . numbers_booking . get_value ( ) [ ind_parking_closest ] += 1 return self . get_ids ( ind_parking_closest ) , ind_parking_closest