File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed
Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -39,29 +39,46 @@ final class MapQuest extends AbstractHttpProvider implements Provider
3939 const DATA_KEY_ADDRESS = 'address ' ;
4040
4141 const KEY_API_KEY = 'key ' ;
42+
4243 const KEY_LOCATION = 'location ' ;
44+
4345 const KEY_OUT_FORMAT = 'outFormat ' ;
46+
4447 const KEY_MAX_RESULTS = 'maxResults ' ;
48+
4549 const KEY_THUMB_MAPS = 'thumbMaps ' ;
50+
4651 const KEY_INTL_MODE = 'intlMode ' ;
52+
4753 const KEY_BOUNDING_BOX = 'boundingBox ' ;
54+
4855 const KEY_LAT = 'lat ' ;
56+
4957 const KEY_LNG = 'lng ' ;
58+
5059 const MODE_5BOX = '5BOX ' ;
60+
5161 const OPEN_BASE_URL = 'https://open.mapquestapi.com/geocoding/v1/ ' ;
62+
5263 const LICENSED_BASE_URL = 'https://www.mapquestapi.com/geocoding/v1/ ' ;
64+
5365 const GEOCODE_ENDPOINT = 'address ' ;
66+
5467 const DEFAULT_GEOCODE_PARAMS = [
5568 self ::KEY_LOCATION => '' ,
5669 self ::KEY_OUT_FORMAT => 'json ' ,
5770 self ::KEY_API_KEY => '' ,
5871 ];
72+
5973 const DEFAULT_GEOCODE_OPTIONS = [
6074 self ::KEY_MAX_RESULTS => 3 ,
6175 self ::KEY_THUMB_MAPS => false ,
6276 ];
77+
6378 const REVERSE_ENDPOINT = 'reverse ' ;
79+
6480 const ADMIN_LEVEL_STATE = 1 ;
81+
6582 const ADMIN_LEVEL_COUNTY = 2 ;
6683
6784 /**
You can’t perform that action at this time.
0 commit comments