forked from geocoder-php/Geocoder
-
Notifications
You must be signed in to change notification settings - Fork 0
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
Showing
9 changed files
with
38 additions
and
9 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
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 |
---|---|---|
|
@@ -18,7 +18,7 @@ | |
/** | ||
* @author David Guyon <[email protected]> | ||
*/ | ||
class BingMapsProvider extends AbstractProvider implements ProviderInterface | ||
class BingMapsProvider extends AbstractProvider implements LocaleAwareProviderInterface | ||
{ | ||
/** | ||
* @var string | ||
|
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 |
---|---|---|
|
@@ -18,7 +18,7 @@ | |
/** | ||
* @author Giovanni Pirrotta <[email protected]> | ||
*/ | ||
class GeonamesProvider extends AbstractProvider implements ProviderInterface | ||
class GeonamesProvider extends AbstractProvider implements LocaleAwareProviderInterface | ||
{ | ||
/** | ||
* @var string | ||
|
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 |
---|---|---|
|
@@ -18,7 +18,7 @@ | |
/** | ||
* @author William Durand <[email protected]> | ||
*/ | ||
class GoogleMapsProvider extends AbstractProvider implements ProviderInterface | ||
class GoogleMapsProvider extends AbstractProvider implements LocaleAwareProviderInterface | ||
{ | ||
/** | ||
* @var string | ||
|
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,23 @@ | ||
<?php | ||
|
||
/** | ||
* This file is part of the Geocoder package. | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
* | ||
* @license MIT License | ||
*/ | ||
|
||
namespace Geocoder\Provider; | ||
|
||
interface LocaleAwareProviderInterface extends ProviderInterface | ||
{ | ||
/** | ||
* Return the locale to be used in locale aware requests. | ||
* | ||
* In case there is no locale in use, null is returned. | ||
* | ||
* @return string|null | ||
*/ | ||
public function getLocale(); | ||
} |
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 |
---|---|---|
|
@@ -16,7 +16,7 @@ | |
/** | ||
* @author Niklas Närhinen <[email protected]> | ||
*/ | ||
class OpenStreetMapsProvider extends AbstractProvider implements ProviderInterface | ||
class OpenStreetMapsProvider extends AbstractProvider implements LocaleAwareProviderInterface | ||
{ | ||
/** | ||
* @var string | ||
|
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 |
---|---|---|
|
@@ -18,7 +18,7 @@ | |
/** | ||
* @author Antoine Corcy <[email protected]> | ||
*/ | ||
class TomTomProvider extends AbstractProvider implements ProviderInterface | ||
class TomTomProvider extends AbstractProvider implements LocaleAwareProviderInterface | ||
{ | ||
/** | ||
* @var string | ||
|
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 |
---|---|---|
|
@@ -17,7 +17,7 @@ | |
/** | ||
* @author Antoine Corcy <[email protected]> | ||
*/ | ||
class YandexProvider extends AbstractProvider implements ProviderInterface | ||
class YandexProvider extends AbstractProvider implements LocaleAwareProviderInterface | ||
{ | ||
/** | ||
* @var string | ||
|