Commit 75e3744
authored
Fix batch geocoding request handling (#148)
* Allowing batch geocoding of at least one query
* Refactor mode override
* Handle multiple geocoding queries
* Add clarifying comments
* Minor feedback edits
* Set up single forward batch test case
* Add test for valid fwd batch geocoding with multiple queries
* Add test for failed single forward batch geocode
* Add test for failed multiple forward batch geocode
* Add debug notes
* Add no-results returned forward batch geocoding tests
* Rename/cleanup tests & comments
* Switch from guard to if/let
* Add reverse batch geocode tests
* Match precision for path-matching tests
* Fix test fixture file paths
* 🔮1 parent a6a4153 commit 75e3744
15 files changed
Lines changed: 2707 additions & 13 deletions
File tree
- MapboxGeocoder.xcodeproj
- MapboxGeocoderTests
- fixtures
- MapboxGeocoder
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
83 | 88 | | |
84 | 89 | | |
85 | 90 | | |
| |||
221 | 226 | | |
222 | 227 | | |
223 | 228 | | |
| 229 | + | |
224 | 230 | | |
225 | 231 | | |
226 | 232 | | |
| |||
236 | 242 | | |
237 | 243 | | |
238 | 244 | | |
| 245 | + | |
239 | 246 | | |
240 | 247 | | |
241 | 248 | | |
| |||
245 | 252 | | |
246 | 253 | | |
247 | 254 | | |
| 255 | + | |
248 | 256 | | |
249 | 257 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
223 | 223 | | |
224 | 224 | | |
225 | 225 | | |
226 | | - | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
227 | 237 | | |
228 | 238 | | |
229 | 239 | | |
| |||
250 | 260 | | |
251 | 261 | | |
252 | 262 | | |
| 263 | + | |
253 | 264 | | |
254 | 265 | | |
255 | 266 | | |
256 | 267 | | |
257 | 268 | | |
258 | 269 | | |
259 | 270 | | |
260 | | - | |
261 | | - | |
262 | | - | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
263 | 277 | | |
264 | 278 | | |
265 | 279 | | |
| |||
269 | 283 | | |
270 | 284 | | |
271 | 285 | | |
272 | | - | |
273 | | - | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
274 | 306 | | |
275 | 307 | | |
276 | 308 | | |
| |||
290 | 322 | | |
291 | 323 | | |
292 | 324 | | |
293 | | - | |
294 | | - | |
295 | | - | |
296 | | - | |
297 | | - | |
298 | | - | |
299 | | - | |
| 325 | + | |
300 | 326 | | |
301 | 327 | | |
302 | 328 | | |
| |||
0 commit comments