public function find_facilities_by_location($specialty, $address, $location)
 {
     $result = HospitalsController::specialty($specialty, $address, $location, true);
     return $this->process_result($result, 3);
 }
Esempio n. 2
0
Route::get('singleDoctor', function () {
    $term = Request::input('q');
    $result = '';
    if (isset($term)) {
        $result = str_replace("\n", "<br />", (new DoctorsController())->singleDoctor($term));
    }
    return $result;
});
Route::get('/filter_feed', function () {
    $tag = Request::input('tag');
    return (new WelcomeController())->filter_feed($tag);
});
Route::get('/reverse_geocode', function () {
    $q = Request::input('q');
    return (new HospitalsController())->reverse_geocode($q);
});
Route::get('nhifcoverage', function () {
    $type = Request::input('type');
    $gps = Request::input('gps');
    $address = Request::input('address');
    return str_replace("\n", "<br />", NHIFController::coverage($type, $gps, $address, false));
});
Route::get('specialty', function () {
    $specialty = Request::input('specialty');
    $gps = Request::input('gps');
    $address = Request::input('address');
    return str_replace("\n", "<br />", HospitalsController::specialty($specialty, $gps, $address, false));
});
Route::get('profile', ['middleware' => 'auth', 'uses' => 'UserController@showProfile']);
Route::get('home', 'HomeController@index');
Route::controllers(['auth' => 'Auth\\AuthController', 'password' => 'Auth\\PasswordController']);