PHP 클래스 Geocoder\Provider\OpenCage

저자: mtm ([email protected])
상속: extends AbstractHttpProvider, implements Geocoder\Provider\LocaleAwareProvider, use trait Geocoder\Provider\LocaleTrait
파일 보기 프로젝트 열기: willdurand/geocoder 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( Http\Client\HttpClient $client, string $apiKey, boolean $useSsl = false, string | null $locale = null )
geocode ( $address )
getName ( )
reverse ( $latitude, $longitude )

보호된 메소드들

메소드 설명
guessBestComponent ( array $components, array $keys ) : null | string
guessLocality ( array $components ) : null | string
guessStreetName ( array $components ) : null | string
guessSubLocality ( array $components ) : null | string

비공개 메소드들

메소드 설명
executeQuery ( $query ) : Geocoder\Model\AddressCollection

메소드 상세

__construct() 공개 메소드

public __construct ( Http\Client\HttpClient $client, string $apiKey, boolean $useSsl = false, string | null $locale = null )
$client Http\Client\HttpClient An HTTP adapter.
$apiKey string An API key.
$useSsl boolean Whether to use an SSL connection (optional).
$locale string | null A locale (optional).

geocode() 공개 메소드

public geocode ( $address )

getName() 공개 메소드

public getName ( )

guessBestComponent() 보호된 메소드

protected guessBestComponent ( array $components, array $keys ) : null | string
$components array
$keys array
리턴 null | string

guessLocality() 보호된 메소드

protected guessLocality ( array $components ) : null | string
$components array
리턴 null | string

guessStreetName() 보호된 메소드

protected guessStreetName ( array $components ) : null | string
$components array
리턴 null | string

guessSubLocality() 보호된 메소드

protected guessSubLocality ( array $components ) : null | string
$components array
리턴 null | string

reverse() 공개 메소드

public reverse ( $latitude, $longitude )