LeKoala\GeoTools\Services\MapBox
In mapbox, coordinates are reversed! (longitude, latitude)
Synopsis
class MapBox
implements
Geocoder
{
- // constants
- const API_URL = 'https://api.mapbox.com/geocoding/v5/{mode}/{query}.json';
- const MODE_PLACES = 'mapbox.places';
- const MODE_PLACES_PERMANENT = 'mapbox.places-permanent';
- // methods
- protected Address query()
- protected void getLanguage()
- public static array listLanguages()
- public void reverseGeocode()
- public void geocode()
Hierarchy
Implements
Constants
Name | Value |
---|---|
API_URL | 'https://api.mapbox.com/geocoding/v5/{mode}/{query}.json' |
MODE_PLACES | 'mapbox.places' |
MODE_PLACES_PERMANENT | 'mapbox.places-permanent' |