Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Subnational1Code List and Search Web Service API

This is implemented in the IS/DataDeliveryREST code base.

URL

description

status

notes

data/meta/subnational1/list ?locale=<locale to use for names>

Return entire list of "state" names

coded, not deployed

 

data/meta/subnational1/list?countryCode=<2-letter ISO country code> &locale=<locale to use for names>

Return list of "state" names found in the given country

coded, not deployed

 

data/meta/subnational1/find?match=<string to match> &locale=<locale used in match string>

Return list of "state" names that match

not coded

Can wildcards be used in the match string?

parameter

required

default

value options

description

status

match

yes, for /find

n/a

 

String to match against "county" names. What kind of wildcards can be used?

not coded

locale

no

en_US

Java standard locale codes

locale in which to perform matching, and in which to provide names in response (when possible)

not coded

countryCode

no

n/a


2-letter ISO country code

coded, not deployed

format

no

csv

  • csv
  • xml

format to use for response

coded, not deployed

CSV Result Format
Panel

<country code>, <subnational1 code>, <name associated with subnational1 code>
<country code>, <subnational1 code>, <name associated with subnational1 code
<country code>, <subnational1 code>, <name associated with subnational1 code>

...