api.maponics.com logo

Documentation > Public Methods > Method Detail: getGeoPolyByID

This request requires you to submit an object id. 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>getGeoPolyByID</method> <parameters> <id>142</id> <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(((-88.123669 30.55242,-88.12413 30.556877,-88.13473 30.573558,-88.138026 30.578445,-88.141513 30.576458,-88.152158 30.576555,-88.15539 30.566751,-88.162301 30.560227,-88.165553 30.554744,-88.134837 30.554702,-88.123669 30.55242)))</geom> </item> </request> </data>