api.maponics.com logo

Documentation > Public Methods > Method Detail: getGeoPolyByName

This request requires you to submit an object name and other uniquely identifying features. The API will return the geometry for that object.

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>getGeoPolyByName</method> <parameters> <name>tribeca</name> <city>new york</city> <state>NY</state> <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> <request> <item> <geom>SRID=4326;MULTIPOLYGON(((-74.01242 40.713677,-74.011462 40.713238,-74.010718 40.712862,-74.009111 40.712013,-74.008618 40.711744,-74.008078 40.71241,-74.007556 40.71297,-74.007118 40.71352,-74.006614 40.714092,-74.00616 40.714649,-74.005723 40.715128,-74.005287 40.715687,-74.004837 40.716208,-74.004399 40.716717,-74.00406 40.717068,-74.00391 40.717273,-74.003412 40.717897,-74.00299 40.718473,-74.002405 40.71908,-74.001934 40.71968,-74.001717 40.719893,-74.002472 40.720406,-74.003075 40.720901,-74.003313 40.72105,-74.003744 40.721381,-74.004434 40.721877,-74.005082 40.722323,-74.005297 40.722522,-74.005621 40.722753,-74.006182 40.723134,-74.006204 40.722985,-74.006507 40.723003,-74.007892 40.723122,-74.009579 40.723275,-74.010337 40.723359,-74.011354 40.723445,-74.011465 40.722803,-74.011619 40.72221,-74.011775 40.721453,-74.011908 40.720762,-74.012152 40.719511,-74.012634 40.717579,-74.012804 40.716885,-74.012957 40.716288,-74.013101 40.715688,-74.013474 40.714083,-74.01242 40.713677)))</geom> </item> </request> </data>