-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5ad0f5d
commit 124fb16
Showing
16 changed files
with
281 additions
and
99 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
<?php | ||
|
||
return [ | ||
|
||
/* ----------------------------------------------------------------- | ||
| Services | ||
| ----------------------------------------------------------------- | ||
*/ | ||
|
||
'services' => [ | ||
|
||
//----------------------------------------------------- | ||
'google' => [ | ||
|
||
'directions' => [ | ||
'service' => Arcanedev\GeoLocation\Google\Directions\DirectionsService::class, | ||
'options' => [ | ||
'key' => env('GOOGLE_MAPS_DIRECTIONS_KEY'), | ||
], | ||
], | ||
|
||
'distance-matrix' => [ | ||
'service' => Arcanedev\GeoLocation\Google\DistanceMatrix\DistanceMatrixService::class, | ||
'options' => [ | ||
'key' => env('GOOGLE_MAPS_DISTANCE_MATRIX_KEY'), | ||
], | ||
], | ||
|
||
'elevation' => [ | ||
'service' => Arcanedev\GeoLocation\Google\Elevation\ElevationService::class, | ||
'options' => [ | ||
'key' => env('GOOGLE_MAPS_ELEVATION_KEY'), | ||
], | ||
], | ||
|
||
'geocoding' => [ | ||
'service' => Arcanedev\GeoLocation\Google\Geocoding\GeocodingService::class, | ||
'options' => [ | ||
'key' => env('GOOGLE_MAPS_GEOCODING_KEY'), | ||
], | ||
], | ||
], | ||
|
||
], | ||
|
||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
<?php namespace Arcanedev\GeoLocation\Contracts; | ||
|
||
/** | ||
* Interface GoogleManager | ||
* | ||
* @package Arcanedev\GeoLocation\Contracts | ||
* @author ARCANEDEV <[email protected]> | ||
*/ | ||
interface GoogleManager | ||
{ | ||
/* ----------------------------------------------------------------- | ||
| Main Methods | ||
| ----------------------------------------------------------------- | ||
*/ | ||
|
||
/** | ||
* Create the google directions service. | ||
* | ||
* @return \Arcanedev\GeoLocation\Google\AbstractService | ||
*/ | ||
public function createDirectionsDriver(); | ||
|
||
/** | ||
* Create the google distance matrix service. | ||
* | ||
* @return \Arcanedev\GeoLocation\Google\AbstractService | ||
*/ | ||
public function createDistanceMatrixDriver(); | ||
|
||
/** | ||
* Create the google elevation service. | ||
* | ||
* @return \Arcanedev\GeoLocation\Google\AbstractService | ||
*/ | ||
public function createElevationDriver(); | ||
|
||
/** | ||
* Create the google geocoding service. | ||
* | ||
* @return \Arcanedev\GeoLocation\Google\AbstractService | ||
*/ | ||
public function createGeocodingDriver(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.