Locations List¶
List locations matching search criteria. Multiple criteria options are combined with a logical "and", meaning all criteria must match a location to be included in the results.
Usage¶
s10k locations list
[-m=<name>]
[-r=<region>]
[-s=<stateOrProvince>]
[-p=<postalCode>]
[-c=<country>]
[-tz=<zone>]
[-sort=orderKey[,orderKey...]]...
[-M=max] [-O=<resultOffset>]
[-mode=<displayMode>]
Options¶
Output¶
A listing of matching locations. Each record contains the following properties:
| Property | Description |
|---|---|
| ID | A unique identifier for the location. |
| Country | The country code, for example NZ or US. |
| Region | The region name. |
| Time Zone | The time zone ID, for example Pacific/Auckland or UTC. |
| Locatlity | The locality (city) name. |
| Postal Code | The postal code. |
Examples¶
s10k locations list --name wellington
You can use locs instead of locations:
s10k locs list --name wellington
╔══════════╤═════════╤════════════╤════════════════╤══════════════════╤═════════════════╤═════════════╗
║ ID │ Country │ Region │ State/Province │ Time Zone │ Locality │ Postal Code ║
╠══════════╪═════════╪════════════╪════════════════╪══════════════════╪═════════════════╪═════════════╣
║ 11565134 │ NZ │ │ Wellington │ Pacific/Auckland │ Wellington City │ ║
╟──────────┼─────────┼────────────┼────────────────┼──────────────────┼─────────────────┼─────────────╢
║ 11536889 │ NZ │ Wellington │ │ Pacific/Auckland │ Featherston │ ║
╟──────────┼─────────┼────────────┼────────────────┼──────────────────┼─────────────────┼─────────────╢
║ 11536821 │ NZ │ Wellington │ │ Pacific/Auckland │ Haywards │ 5018 ║
╚══════════╧═════════╧════════════╧════════════════╧══════════════════╧═════════════════╧═════════════╝
ID,Country,Region,State/Province,Time Zone,Locality,Postal Code
11565134,NZ,,Wellington,Pacific/Auckland,Wellington City,
11536889,NZ,Wellington,,Pacific/Auckland,Featherston,
11536821,NZ,Wellington,,Pacific/Auckland,Haywards,5018
[
{
"id": 11565134,
"country": "NZ",
"stateOrProvince": "Wellington",
"locality": "Wellington City",
"zone": "Pacific/Auckland"
},
{
"id": 11536889,
"country": "NZ",
"region": "Wellington",
"locality": "Featherston",
"zone": "Pacific/Auckland"
},
{
"id": 11536821,
"country": "NZ",
"region": "Wellington",
"postalCode": "5018",
"locality": "Haywards",
"zone": "Pacific/Auckland"
}
]