Methods

Method detail for: getGeoNameByCity

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

Valid Datasets

DatasetDataset DetailsMethod Parameters
Maponics College Campus BoundariesClick To ViewClick To View

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

Maponics Destination & Venue BoundariesClick To ViewClick To View

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

Maponics Neighborhood Boundaries North AmericaClick To ViewClick To View

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

Maponics +Residential BoundariesClick To ViewClick To View

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

Maponics Shopping BoundariesClick To ViewClick To View

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

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

ZIP CodesClick To ViewClick To View

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

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>getGeoNameByCity</method> <returnType>xml</returnType> <parameters> <state>NY</state> <city>New York</city> </parameters> </request> </data>
{ "data":{ "auth":{ "loginname":"your_username", "key":"your_api_key" }, "request":[ { "dataset":"Z", "method":"getGeoNameByCity", "returnType":"json", "parameters":{ "state":"NY", "city":"New York" } } ] } }
<?xml version="1.0" encoding="UTF-8" ?> <data> <resultcode>0</resultcode> <message>Return OK</message> <requestid>03-14474</requestid> <request> <item> <name>NEW YORK</name> </item> <item> <name>NEW YORK</name> </item> <item> <name>NEW YORK</name> </item> ... <item> <name>NEW YORK MILLS</name> </item> <item> <name>NEW YORK</name> </item> <item> <name>NEW YORK</name> </item> </request> </data>
[ { "resultcode":0, "message":"Return OK", "requestid":"03-14473", "request":[ [ { "name":"NEW YORK" }, { "name":"NEW YORK" }, { "name":"NEW YORK" }...{ "name":"NEW YORK MILLS" }, { "name":"NEW YORK" }, { "name":"NEW YORK" } ] ] } ]