Larabros\Elogram\Repositories\LocationsRepository¶
-
class
LocationsRepository
¶ LocationsRepository
-
property
client
¶ protected AdapterInterface
-
get
($id)¶ Get information about a location.
Parameters: - $id (string) – The ID of the location
Returns: Response
-
getRecentMedia
($id, $minId = null, $maxId = null)¶ Get a list of recent media objects from a given location.
Parameters: - $id –
- $minId (string|null) – Return media before this min_id
- $maxId (string|null) – Return media after this max_id
Returns: Response
-
search
($latitude, $longitude, $distance = 1000)¶ Search for a location by geographic coordinate.
Parameters: - $latitude (int) – Latitude of the center search coordinate. If used,
$longitude
is required - $longitude (int) – Longitude of the center search coordinate. If used,
$latitude
is required - $distance (int) – The distance in metres. Default is ``1000``m, max distance is 5km
Returns: Response
- $latitude (int) – Latitude of the center search coordinate. If used,
-
searchByFacebookPlacesId
($facebookPlacesId)¶ Search for a location by Facebook Places ID.
Parameters: - $facebookPlacesId (int) – A Facebook Places ID
Returns: Response
-
searchByFoursquareId
($foursquareId)¶ Search for a location by Foursquare location ID.
Parameters: - $foursquareId (string) – A Foursquare V2 API location ID
Returns: Response
-
__construct
(AdapterInterface $client)¶ Creates a new instance of
AbstractRepository
.Parameters: - $client (AdapterInterface) –
-
property