Overview

Namespaces

  • App
    • Http
      • Controllers
        • Auth
      • Middleware
  • PHP

Classes

  • AdController
  • ApiController
  • CommentController
  • Controller
  • EmergencyController
  • NewspaperController
  • RouteController
  • TaxiController
  • UserController
  • Overview
  • Namespace
  • Class
  • Tree

Class ApiController

Illuminate\Routing\Controller
Extended by App\Http\Controllers\Controller uses Illuminate\Foundation\Auth\Access\AuthorizesRequests (not available) Illuminate\Foundation\Bus\DispatchesJobs (not available) Illuminate\Foundation\Validation\ValidatesRequests (not available)
Extended by App\Http\Controllers\ApiController
Namespace: App\Http\Controllers
Located at app/Http/Controllers/ApiController.php
Methods summary
public Illuminate\Http\JsonResponse
# adsPerLocation( )

Returns

Illuminate\Http\JsonResponse
Returns information about the given location

Author

Stefano Groenland

Version

1.0

Api

public Illuminate\Http\JsonResponse
# adsByType( )

Returns

Illuminate\Http\JsonResponse
Returns the advertisements for the given type

Author

Stefano Groenland

Version

1.0

Api

public Illuminate\Http\JsonResponse
# increaseClickOfAd( )

Returns

Illuminate\Http\JsonResponse
returns success if succesfully updated the click count

Author

Stefano Groenland

Api

public Illuminate\Http\JsonResponse
# getDriverOffTablet( )

Returns

Illuminate\Http\JsonResponse
Returns the driver associated with the Tablet

Author

Stefano Groenland

Version

1.0

Api

public Illuminate\Http\JsonResponse
# getRoutes( )

Returns

Illuminate\Http\JsonResponse
Returns all routes from our Database in JSON format

Author

Stefano Groenland

Version

1.0

Api

public Illuminate\Http\JsonResponse
# getRoutesForTaxi( )

Returns

Illuminate\Http\JsonResponse
Returns all routes for the specified taxi ID in JSON format

Author

Stefano Groenland

Version

1.0

Api

public Illuminate\Http\JsonResponse
# getNewsfeeds( )

Returns

Illuminate\Http\JsonResponse
Returns all newsfeed links in JSON format

Author

Stefano Groenland

Version

1.0

Api

public Illuminate\Http\JsonResponse
# sendSOS( )

Returns

Illuminate\Http\JsonResponse
Updates a row in the 'Emergency' table with current location of the taxi sending it.

Author

Stefano Groenland

Version

1.0

Api

public Illuminate\Support\Collection|Illuminate\Http\JsonResponse
# tabletLogin( )

Returns

Illuminate\Support\Collection|Illuminate\Http\JsonResponse

Looks for the relations of a given tablet name if the tablet name exists in the DB, Returns data from the tablet , the related driver and taxi

Author

Stefano Groenland

Version

1.0

Api

public string|static|Illuminate\Http\JsonResponse
# postComment( )

Returns

string|static|Illuminate\Http\JsonResponse
Let's the tablet post a comment for the corresponding driver to the database with a star rating

Author

Stefano Groenland

Version

1.0

Api

public string|static|Illuminate\Http\JsonResponse
# signalCheck( )

Returns

string|static|Illuminate\Http\JsonResponse

Checks if there are any last_seen values with a difference of 20 minutes at the current time when calling this method. if this is true, it will create an row in the database with the related taxi id

Author

Stefano Groenland

Version

1.0

Api

public static|Illuminate\Http\JsonResponse
# getSOS( )

Returns

static|Illuminate\Http\JsonResponse
Get all Emergency rows from the database.

Author

Stefano Groenland

Version

1.0

Api

public Illuminate\Http\JsonResponse
# getCommentsOffDriver( )

Returns

Illuminate\Http\JsonResponse
Gets all comments for the given driver.

Author

Stefano Groenland

Version

1.0

Api

public Illuminate\Http\JsonResponse
# sendLocation( )

Returns

Illuminate\Http\JsonResponse
Updates the taxi location with the given params

Author

Stefano Groenland

Version

1.0

Api

public Illuminate\Http\JsonResponse
# inShift( )

Returns

Illuminate\Http\JsonResponse
Updates the shift value of the given taxi, changes it to true so the taxi is in shift.

Author

Stefano Groenland

Version

1.0

Api

public Illuminate\Http\JsonResponse
# offShift( )

Returns

Illuminate\Http\JsonResponse
Updates the shift value of the given taxi, changes it to false so the taxi is off shift.

Author

Stefano Groenland

Version

1.0

Api

public Illuminate\Http\JsonResponse
# requestReturnRide( )

Returns

Illuminate\Http\JsonResponse

Uses a ton of inputs to define the return route and request it. It will create a row in the database and the admins need to assign them to a driver, if possible.

Author

Stefano Groenland

Version

1.0

Api

public Illuminate\Http\JsonResponse
# postBase( )

Returns

Illuminate\Http\JsonResponse
Uses the given inputs to create a new location in the DB for the google maps base markers.

Author

Stefano Groenland

Version

1.0

Api

public mixed
# getLocations( )

Returns

mixed
Returns all locations of the current in shift taxi's where they have coordinates stored in the DB.

Author

Stefano Groenland

Version

1.0

Api

public mixed
# getBaseLocations( )

Returns

mixed
Returns all locations of the defined bases stored in the DB.

Author

Stefano Groenland

Version

1.0

Api

public mixed
# getShiftState( )

Returns

mixed
Returns the given taxi's in_shift value

Author

Stefano Groenland

Version

1.0

Api

public string
# getLocationsInRadius( )

Returns

string
Uses the geobyte API for nearby cities in a radius arround the lat & long coords of a given location.

Author

Stefano Groenland
public mixed
# statisticsDataYear( )

Returns

mixed
Returns all clicks for the given year.

Author

Stefano Groenland
public mixed
# statisticsDataMonth( )

Returns

mixed
Returns all clicks for the given month.

Author

Richard Perdaan
public mixed
# statisticsDataWeek( )

Returns

mixed
Returns all clicks for the given month.

Author

Richard Perdaan
APIv1 API documentation generated by ApiGen