api.maponics.com logo

Documentation > Public Methods > Method Detail: 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.

To see the parameters that are required by a specific dataset when calling this method, please select the dataset from the list below:

  Required parameters for this dataset/method combination

Sample Request XML

Please remember that this is merely a static example of an API request. For a real-world API request, the dataset code would reflect the actual dataset called, and the paramters would then follow from that dataset. To see a list of the required parameters for any given dataset with this method, select the dataset in the drop down list above.

<?xml version="1.0" encoding="UTF-8" ?> <data> <auth> <loginname>your_username</loginname> <key>your_api_key</key> </auth> <request> <dataset>N</dataset> <method>getGeoListByCity</method> <parameters> <state>NY</state> <city>New York</city> <submatch>N</submatch> </parameters> </request> </data>

Sample Response XML

Please remember that this is merely sample XML and the returned items shown are in no way representative of real-world data.

<?xml version="1.0" encoding="UTF-8" ?> <data> <resultcode>0</resultcode> <message>Return OK</message> <requestid>2373</requestid> <request> <item> <neighborhd>Baychester</neighborhd> </item> <item> <neighborhd>Belmont</neighborhd> </item> <item> <neighborhd>Bronxdale</neighborhd> </item> <item> <neighborhd>Bronxwood</neighborhd> </item> <item> <neighborhd>Castle Hill</neighborhd> </item> <item> <neighborhd>Hamilton Heights</neighborhd> </item> <item> <neighborhd>Harlem</neighborhd> </item> <item> <neighborhd>Hell's Kitchen</neighborhd> </item> <item> <neighborhd>Inwood</neighborhd> </item> </request> </data>