* locationSetID * Returns a locationSetID for a given locationSet (fallback to `+[Q2]`, world) * (The locationSet doesn't necessarily need to be resolved to compute its `id`) * * @param `locationSet` A {LocationSet} Object, e.g. `{ include: ['us'] }` * @return String locationSetID,
(locationSet)
| 312 | * @return String locationSetID, e.g. `+[Q30]` |
| 313 | */ |
| 314 | locationSetID(locationSet) { |
| 315 | let locationSetID; |
| 316 | try { |
| 317 | locationSetID = LOCO.validateLocationSet(locationSet).id; |
| 318 | } catch (err) { |
| 319 | locationSetID = '+[Q2]'; // the world |
| 320 | } |
| 321 | return locationSetID; |
| 322 | } |
| 323 | |
| 324 | |
| 325 | /** |
no outgoing calls
no test coverage detected