Skip to content

Commit 2d7a243

Browse files
authored
Use Nominatim instad of google (#201)
1 parent bf992cd commit 2d7a243

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Tests/Doctrine/ORM/GeocoderListenerTest.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
use Doctrine\ORM\Tools\SchemaTool;
2222
use Doctrine\Tests\DoctrineTestCase;
2323
use Doctrine\Tests\OrmTestCase;
24-
use Geocoder\Provider\GoogleMaps\GoogleMaps;
24+
use Geocoder\Provider\Nominatim\Nominatim;
2525
use Http\Client\Curl\Client;
2626

2727
/**
@@ -67,9 +67,7 @@ protected function setUp()
6767
$reader->addNamespace('Doctrine\ORM\Mapping');
6868

6969
$driver = new AnnotationDriver($reader);
70-
71-
$geocoder = new GoogleMaps(new Client());
72-
70+
$geocoder = Nominatim::withOpenStreetMapServer(new Client(), 'BazingaGeocoderBundle/Test');
7371
$this->listener = new GeocoderListener($geocoder, $driver);
7472

7573
$this->em->getEventManager()->addEventSubscriber($this->listener);

0 commit comments

Comments
 (0)