Extends
lithium\core\StaticObjectSource
static public function find($type, $location) {
if ($type == 'search') {
$request = static::$_search.$location;
} else if ($type == 'station') {
$request = static::$_station.$location;
} else {
return false;
}
$response = @simplexml_load_file($request);
if (!$response) {
return false;
}
return $response;
}