Geocoder\Provider\GeoIPs::reverse PHP Method

reverse() public method

{@inheritDoc}
public reverse ( $latitude, $longitude )
    public function reverse($latitude, $longitude)
    {
        throw new UnsupportedOperation('The GeoIPs provider is not able to do reverse geocoding.');
    }

Usage Example

Beispiel #1
0
 /**
  * @expectedException \Geocoder\Exception\UnsupportedOperation
  * @expectedExceptionMessage The GeoIPs provider is not able to do reverse geocoding.
  */
 public function testReverse()
 {
     $provider = new GeoIPs($this->getMockAdapter($this->never()), 'api_key');
     $provider->reverse(1, 2);
 }