/** * get the lat/lon from a postcode * * @param string $postcode * @return false/object * @author Andy Bennett */ public function latlon_from_postcode($id = NULL, $postcode) { $postcode = latlon::clean_postcode($postcode); $this->where(array("postcode" => $postcode)); return parent::find($id); }