File tree Expand file tree Collapse file tree 9 files changed +38
-9
lines changed Expand file tree Collapse file tree 9 files changed +38
-9
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,11 @@ CHANGELOG
55
66n/a
77
8+ ### 1.7.0 (2013-05-28) ###
9+
10+ * Updated: Geocoder now uses the official geoip library
11+ * Added: LocaleAwareProviderInterface
12+
813### 1.6.0 (2013-05-22) ###
914
1015* Added: API key to MapQuestProvider
Original file line number Diff line number Diff line change 1818 "kriswallsmith/buzz" : " @stable" ,
1919 "guzzle/guzzle" : " @stable" ,
2020 "zendframework/zendframework" : " ~2.1" ,
21- "maxromanovsky/php-maxmind- geoip" : " ~1.12 "
21+ "geoip/ geoip" : " ~1.13 "
2222 },
2323 "suggest" : {
2424 "kriswallsmith/buzz" : " Enabling Buzz allows you to use the BuzzHttpAdapter." ,
25- "ext-curl" : " Enabling the curl extension allows you to use CurlHttpAdapter." ,
25+ "ext-curl" : " Enabling the curl extension allows you to use the CurlHttpAdapter." ,
26+ "ext-geoip" : " Enabling the geoip extension allows you to use the MaxMindProvider." ,
2627 "guzzle/guzzle" : " Enabling Guzzle allows you to use the GuzzleHttpAdapter." ,
2728 "zendframework/zend-http" : " Enabling Zend Http allows you to use the ZendHttpAdapter." ,
28- "maxromanovsky/php-maxmind- geoip" : " If you are going to use MaxMindBinaryProvider."
29+ "geoip/ geoip" : " If you are going to use the MaxMindBinaryProvider (conflict with geoip extension) ."
2930 },
3031 "autoload" : {
3132 "psr-0" : { "Geocoder" : " src/" }
Original file line number Diff line number Diff line change 1818/**
1919 * @author David Guyon <dguyon@gmail.com>
2020 */
21- class BingMapsProvider extends AbstractProvider implements ProviderInterface
21+ class BingMapsProvider extends AbstractProvider implements LocaleAwareProviderInterface
2222{
2323 /**
2424 * @var string
Original file line number Diff line number Diff line change 1818/**
1919 * @author Giovanni Pirrotta <giovanni.pirrotta@gmail.com>
2020 */
21- class GeonamesProvider extends AbstractProvider implements ProviderInterface
21+ class GeonamesProvider extends AbstractProvider implements LocaleAwareProviderInterface
2222{
2323 /**
2424 * @var string
Original file line number Diff line number Diff line change 1818/**
1919 * @author William Durand <william.durand1@gmail.com>
2020 */
21- class GoogleMapsProvider extends AbstractProvider implements ProviderInterface
21+ class GoogleMapsProvider extends AbstractProvider implements LocaleAwareProviderInterface
2222{
2323 /**
2424 * @var string
Original file line number Diff line number Diff line change 1+ <?php
2+
3+ /**
4+ * This file is part of the Geocoder package.
5+ * For the full copyright and license information, please view the LICENSE
6+ * file that was distributed with this source code.
7+ *
8+ * @license MIT License
9+ */
10+
11+ namespace Geocoder \Provider ;
12+
13+ interface LocaleAwareProviderInterface extends ProviderInterface
14+ {
15+ /**
16+ * Return the locale to be used in locale aware requests.
17+ *
18+ * In case there is no locale in use, null is returned.
19+ *
20+ * @return string|null
21+ */
22+ public function getLocale ();
23+ }
Original file line number Diff line number Diff line change 1616/**
1717 * @author Niklas Närhinen <niklas@narhinen.net>
1818 */
19- class OpenStreetMapsProvider extends AbstractProvider implements ProviderInterface
19+ class OpenStreetMapsProvider extends AbstractProvider implements LocaleAwareProviderInterface
2020{
2121 /**
2222 * @var string
Original file line number Diff line number Diff line change 1818/**
1919 * @author Antoine Corcy <contact@sbin.dk>
2020 */
21- class TomTomProvider extends AbstractProvider implements ProviderInterface
21+ class TomTomProvider extends AbstractProvider implements LocaleAwareProviderInterface
2222{
2323 /**
2424 * @var string
Original file line number Diff line number Diff line change 1717/**
1818 * @author Antoine Corcy <contact@sbin.dk>
1919 */
20- class YandexProvider extends AbstractProvider implements ProviderInterface
20+ class YandexProvider extends AbstractProvider implements LocaleAwareProviderInterface
2121{
2222 /**
2323 * @var string
You can’t perform that action at this time.
0 commit comments