@@ 65-89 (lines=25) @@ | ||
62 | return $fgcoding; |
|
63 | } |
|
64 | ||
65 | public static function getStreetData($params) |
|
66 | { |
|
67 | $url_query = Endpoint::STREET_DATA; |
|
68 | ||
69 | if (isset($params['pk'])) { |
|
70 | $url_query.=$params['pk'].'/'; |
|
71 | } |
|
72 | ||
73 | if (isset($params['offset'])) { |
|
74 | $url_query.=$params['offset'].'/'; |
|
75 | } |
|
76 | ||
77 | if (isset($params['limit'])) { |
|
78 | $url_query.=$params['limit'].'/'; |
|
79 | } |
|
80 | ||
81 | $query = array(); |
|
82 | ||
83 | $response = Route4Me::makeUrlRequst($url_query, array( |
|
84 | 'method' => 'GET', |
|
85 | 'query' => $query |
|
86 | )); |
|
87 | ||
88 | return $response; |
|
89 | } |
|
90 | ||
91 | public static function getZipCode($params) |
|
92 | { |
|
@@ 91-115 (lines=25) @@ | ||
88 | return $response; |
|
89 | } |
|
90 | ||
91 | public static function getZipCode($params) |
|
92 | { |
|
93 | $url_query = Endpoint::STREET_DATA_ZIPCODE; |
|
94 | ||
95 | if (isset($params['zipcode'])) { |
|
96 | $url_query.=$params['zipcode'].'/'; |
|
97 | } |
|
98 | ||
99 | if (isset($params['offset'])) { |
|
100 | $url_query.=$params['offset'].'/'; |
|
101 | } |
|
102 | ||
103 | if (isset($params['limit'])) { |
|
104 | $url_query.=$params['limit'].'/'; |
|
105 | } |
|
106 | ||
107 | $query = array(); |
|
108 | ||
109 | $response = Route4Me::makeUrlRequst($url_query, array( |
|
110 | 'method' => 'GET', |
|
111 | 'query' => $query |
|
112 | )); |
|
113 | ||
114 | return $response; |
|
115 | } |
|
116 | ||
117 | public static function getService($params) |
|
118 | { |