Methods

Method detail for: getGeoNameByState

This request requires you to submit a two-letter State abbreviation. The API will return a list of names 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)

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)

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>C</dataset> <method>getGeoNameByState</method> <returnType>json</returnType> <parameters> <state>NY</state> </parameters> </request> </data>
{ "data":{ "auth":{ "loginname":"your_username", "key":"your_api_key" }, "request":[ { "dataset":"C", "method":"getGeoNameByRadius", "returnType":"xml", "parameters":{ "lat":"40.713734", "lon":"-74.011683", "radius":"10" } } ] } }
<?xml version="1.0" encoding="UTF-8" ?> <data> <resultcode>0</resultcode> <message>Return OK</message> <requestid>2373</requestid> <request> <item> <name>Nassau</name> </item> <item> <name>Genesee</name> </item> <item> <name>Cayuga</name> </item> ... <item> <name>Cortland</name> </item> <item> <name>Tompkins</name> </item> <item> <name>Oneida</name> </item> </request> </data>
[ { "resultcode":0, "message":"Return OK", "requestid":"01-11334267", "request":[ [ { "name":"Nassau" }, { "name":"Genesee" }, { "name":"Cayuga" }, ..., { "name":"Cortland" }, { "name":"Tompkins" }, { "name":"Oneida" } ] ] } ]