Methods

Method detail for: getGeoListByState

This request requires you to submit a two-letter State abbreviation. The API will return a list of IDs for all objects of the selected type within that state.

Valid Datasets

DatasetDataset DetailsMethod Parameters
CountiesClick To ViewClick To View

When calling this dataset using this method, use these parameters:

  • state*
  • (Note: Items marked with * are required)

Maponics College Campus BoundariesClick To ViewClick To View

When calling this dataset using this method, use these parameters:

  • state*
  • (Note: Items marked with * are required)

Carrier RoutesClick To ViewClick To View

When calling this dataset using this method, use these parameters:

  • state*
  • (Note: Items marked with * are required)

Maponics Destination & Venue BoundariesClick To ViewClick To View

When calling this dataset using this method, use these parameters:

Maponics Hospital BoundariesClick To ViewClick To View

When calling this dataset using this method, use these parameters:

  • state
  • (Note: Items marked with * are required)

Census MCDsClick To ViewClick To View

When calling this dataset using this method, use these parameters:

  • state*
  • (Note: Items marked with * are required)

Maponics City PointsClick To ViewClick To View

When calling this dataset using this method, use these parameters:

  • state*
  • (Note: Items marked with * are required)

Maponics Neighborhood Boundaries North AmericaClick To ViewClick To View

When calling this dataset using this method, use these parameters:

Maponics Neighborhood Centroids North AmericaClick To ViewClick To View

When calling this dataset using this method, use these parameters:

Census PlacesClick To ViewClick To View

When calling this dataset using this method, use these parameters:

  • state*
  • (Note: Items marked with * are required)

Maponics +Residential BoundariesClick To ViewClick To View

When calling this dataset using this method, use these parameters:

  • state*
  • (Note: Items marked with * are required)

Maponics School District BoundariesClick To ViewClick To View

When calling this dataset using this method, use these parameters:

  • state*
  • (Note: Items marked with * are required)

Maponics Shopping BoundariesClick To ViewClick To View

When calling this dataset using this method, use these parameters:

  • state*
  • (Note: Items marked with * are required)

ZIP CodesClick To ViewClick To View

When calling this dataset using this method, use these parameters:

  • state*
  • (Note: Items marked with * are required)

Sample Request and Return Data

<?xml version="1.0" encoding="UTF-8" ?> <data> <auth> <loginname>your_username</loginname> <key>your_api_key</key> </auth> <request> <dataset>Z</dataset> <method>getGeoListByState</method> <parameters> <state>NY</state> </parameters> </request> </data>
{ "data":{ "auth":{ "loginname":"your_username", "key":"your_api_key" } }, "request":[ { "dataset":"N", "method":"getGeoListByState", "returnType":"json", "parameters":{ "state":"NY" } } ] }
<?xml version="1.0" encoding="UTF-8" ?> <data> <request> <item> <zip>14889</zip> </item> <item> <zip>14891</zip> </item> <item> <zip>14892</zip> </item> ... <item> <zip>14903</zip> </item> <item> <zip>14904</zip> </item> <item> <zip>14905</zip> </item> </request> </data>
[ { "resultcode":0, "message":"Return OK", "requestid":"01-1467" }, [ { "nid":"7652" }, { "nid":"7435" }, { "nid":"7428" }, ..., { "nid":"77133" }, { "nid":"77134" }, { "nid":"77136" } ] ]