REST API: Counties

This lookup endpoint is used to return the counties for the arg state. Only the GET on the set is supported. Api key required.

Resource URI

only the set is used

Resource Properties

Parameter

Format

Description

Allows Null

center_lat decimal Latitude for the county center point in decimal degrees no
center_lon  decimal  Longitude for the county center point in decimal degrees no 
code string County Name  no 
description  string  County Name  no 
       
       
       
       

Error Responses


REST API: Counties Set

Returns a list of counties for the argument state.  Arg is required

Resource URI

Counties/?state=MD&api_key=xxxxx

Set Filters

ParameterFormatDescriptionAllows Null
state string   the state to return the counties for no

HTTP GET

Return a set of counties for the arg state.

JSON Request:

Request body empty

JSON Response:

[{
"center_lat": -78.69819925572830,
"center_lon": 39.62216451089660,
"code": "Allegany",
"description": "Allegany"
}, {
"center_lat": -76.60827424044770,
"center_lon": 38.99843339165430,
"code": "Anne Arundel",
"description": "Anne Arundel"
}, {
"center_lat": -76.64923875119160,
"center_lon": 39.466106220268,
"code": "Baltimore",
"description": "Baltimore"
}, {
"center_lat": -76.61722946615860,
"center_lon": 39.30502706756120,
"code": "Baltimore City",
"description": "Baltimore City"
}, {
"center_lat": -76.5686580332,
"center_lon": 38.54773049481320,
"code": "Calvert",
"description": "Calvert"
}, {
"center_lat": -75.83560803596280,
"center_lon": 38.87243820022570,
"code": "Caroline",
"description": "Caroline"
}, {
"center_lat": -77.02500944239740,
"center_lon": 39.55946603712070,
"code": "Carroll",
"description": "Carroll"
}, {
"center_lat": -75.94084517644690,
"center_lon": 39.58481249054250,
"code": "Cecil",
"description": "Cecil"
}, {
"center_lat": -76.99244340476850,
"center_lon": 38.51612779955470,
"code": "Charles",
"description": "Charles"
}, {
"center_lat": -75.99177370681640,
"center_lon": 38.48878667957390,
"code": "Dorchester",
"description": "Dorchester"
}, {
"center_lat": -77.39864951159950,
"center_lon": 39.47137249936970,
"code": "Frederick",
"description": "Frederick"
}, {
"center_lat": -79.27516265552410,
"center_lon": 39.528033072495,
"code": "Garrett",
"description": "Garrett"
}, {
"center_lat": -76.32389563416570,
"center_lon": 39.56712771771670,
"code": "Harford",
"description": "Harford"
}, {
"center_lat": -76.93060912501710,
"center_lon": 39.24669174307370,
"code": "Howard",
"description": "Howard"
}, {
"center_lat": -76.010851919668,
"center_lon": 39.26170431019480,
"code": "Kent",
"description": "Kent"
}, {
"center_lat": -77.20012448211590,
"center_lon": 39.135397011887,
"code": "Montgomery",
"description": "Montgomery"
}, {
"center_lat": -76.84981521818450,
"center_lon": 38.82919563680710,
"code": "Prince Georges",
"description": "Prince Georges"
}, {
"center_lat": -76.00686961586740,
"center_lon": 39.083130346908,
"code": "Queen Annes",
"description": "Queen Annes"
}, {
"center_lat": -75.71313290609010,
"center_lon": 38.13476534661340,
"code": "Somerset",
"description": "Somerset"
}, {
"center_lat": -76.60722731868750,
"center_lon": 38.304651317405,
"code": "St. Marys",
"description": "St. Marys"
}, {
"center_lat": -76.07406154424460,
"center_lon": 38.77581552725930,
"code": "Talbot",
"description": "Talbot"
}, {
"center_lat": -77.81393367388140,
"center_lon": 39.60377443591560,
"code": "Washington",
"description": "Washington"
}, {
"center_lat": -75.618270734670,
"center_lon": 38.37541931427250,
"code": "Wicomico",
"description": "Wicomico"
}, {
"center_lat": -75.38393560619560,
"center_lon": 38.22685698873730,
"code": "Worcester",
"description": "Worcester"
}]

XML Request:

XML Response: