Methods

Method detail for: getGeoPolyByCoord

This request requires you to submit a latitude and longitude coordinate pair. The API will spatially determine the object that those coordinates are within, and return the geometry for that object.

Valid Datasets

DatasetDataset DetailsMethod Parameters
CountiesClick To ViewClick To View

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

  • lat*
  • lon*
  • (Note: Items marked with * are required)

Census CBSAsClick To ViewClick To View

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

  • lat*
  • lon*
  • (Note: Items marked with * are required)

Canada DivisionsClick To ViewClick To View

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

  • lat*
  • lon*
  • (Note: Items marked with * are required)

Maponics College Campus BoundariesClick To ViewClick To View

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

  • lat*
  • lon*
  • (Note: Items marked with * are required)

Canada ProvincesClick To ViewClick To View

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

  • lat*
  • lon*
  • (Note: Items marked with * are required)

Carrier RoutesClick To ViewClick To View

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

  • lat*
  • lon*
  • (Note: Items marked with * are required)

Canada SubdivisionsClick To ViewClick To View

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

  • lat*
  • lon*
  • (Note: Items marked with * are required)

Maponics Destination & Venue BoundariesClick To ViewClick To View

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

Maponics Hospital BoundariesClick To ViewClick To View

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

  • lat*
  • lon*
  • (Note: Items marked with * are required)

Maponics Metro BoundariesClick To ViewClick To View

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

  • lat*
  • lon*
  • (Note: Items marked with * are required)

Census MCDsClick To ViewClick To View

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

  • lat*
  • lon*
  • (Note: Items marked with * are required)

Maponics Neighborhood Boundaries EuropeClick To ViewClick To View

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

  • lat*
  • lon*
  • (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 Boundaries Rest Of WorldClick To ViewClick To View

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

  • lat*
  • lon*
  • (Note: Items marked with * are required)

Maponics Neighborhood Boundaries WorldwideClick To ViewClick To View

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

  • lat*
  • lon*
  • (Note: Items marked with * are required)

Census PlacesClick To ViewClick To View

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

  • lat*
  • lon*
  • (Note: Items marked with * are required)

Maponics +Residential BoundariesClick To ViewClick To View

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

  • lat*
  • lon*
  • (Note: Items marked with * are required)

US StatesClick To ViewClick To View

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

  • lat*
  • lon*
  • (Note: Items marked with * are required)

Maponics School Attendance Zone BoundariesClick To ViewClick To View

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

Maponics School District BoundariesClick To ViewClick To View

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

  • lat*
  • lon*
  • (Note: Items marked with * are required)

Maponics Subdivision BoundariesClick To ViewClick To View

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

  • lat*
  • lon*
  • (Note: Items marked with * are required)

Maponics Shopping BoundariesClick To ViewClick To View

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

  • lat*
  • lon*
  • (Note: Items marked with * are required)

ZIP CodesClick To ViewClick To View

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

  • lat*
  • lon*
  • (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>Z</dataset> <method>getGeoPolyByCoord</method> <parameters> <lat>40.713734</lat> <lon>-74.011683</lon> </parameters> </request> </data>
{ "data":{ "auth":{ "loginname":"your_username", "key":"your_api_key" }, "request":[ { "dataset":"N", "method":"getGeoPolyByCoord", "count":"false", "context":"", "returnType":"json", "parameters":{ "lat":"40.713734", "lon":"-74.011683", "submatch":"N" } } ] } }
<?xml version="1.0" encoding="UTF-8" ?> <data> <request> <item> <geom>SRID=4326;MULTIPOLYGON(((-74.00453292 40.71627999,-74.00624904 40.71707604,-74.00754396 40.715433,-74.00882304 40.71601404,-74.00923884 40.71552003,-74.009205 40.71618801,-74.010834 40.71692502,-74.01096792 40.71630303,-74.01289392 40.71718998,-74.01323412 40.71565602,-74.01477708 40.71637899,-74.01500892 40.716072,-74.01521916 40.71601404,-74.01538296 40.715829,-74.01428892 40.71538503,-74.01334104 40.71523302,-74.01375396 40.71368997,-74.01015288 40.71206403,-74.01123216 40.71036699,-74.009988 40.70980602,-74.007225 40.71305502,-74.00535804 40.71215097,-74.00413908 40.71188403,-74.00366208 40.71197799,-74.00316312 40.71231099,-74.00268792 40.71216402,-74.00236284 40.71159099,-74.00087316 40.71169701,-74.00093184 40.71326301,-74.00045484 40.71436497,-74.00131308 40.71478698,-74.00235096 40.71469599,-74.00211516 40.71515904,-74.00302992 40.71558501,-74.00318112 40.71470697,-74.00340396 40.71415104,-74.00401992 40.71455901,-74.00541996 40.71523599,-74.00453292 40.71627999)))</geom> </item> </request> </data>
[ { "resultcode":0, "message":"Return OK", "requestid":"01-6564611", "request":[ { "geom":{ "type":"MultiPolygon", "coordinates":[ [ [ [ -74.010154, 40.712054 ], [ -74.009423, 40.71172 ], [ -74.008651, 40.711351 ], [ -74.007906, 40.712274 ], [ -74.00709, 40.713255 ], [ -74.006348, 40.714144 ], [ -74.005161, 40.71555 ], [ -74.004854268, 40.715909475 ], [ -74.004562, 40.716252 ], [ -74.004131736, 40.716765539 ], [ -74.003444072, 40.717569797 ], [ -74.002813515, 40.718314568 ], [ -74.002328105, 40.718888018 ], [ -74.001905291, 40.719376312 ], [ -74.001979, 40.71943 ], [ -74.002301, 40.719647 ], [ -74.003041, 40.720188 ], [ -74.00411, 40.720957 ], [ -74.005089, 40.721641 ], [ -74.005329907, 40.721809091 ], [ -74.005754, 40.722105 ], [ -74.006901, 40.722925 ], [ -74.00796, 40.723693 ], [ -74.008954705, 40.724448858 ], [ -74.009497223, 40.724852177 ], [ -74.009739928, 40.725019929 ], [ -74.009957648, 40.725212665 ], [ -74.010485002, 40.725595829 ], [ -74.010631598, 40.725702342 ], [ -74.010723865, 40.725769382 ], [ -74.010773114, 40.725773733 ], [ -74.011693, 40.725855 ], [ -74.011852, 40.725059 ], [ -74.011973, 40.724505 ], [ -74.012094, 40.723885 ], [ -74.012134, 40.723693 ], [ -74.01217, 40.723522 ], [ -74.012186299, 40.723416247 ], [ -74.012213, 40.723243 ], [ -74.012363, 40.722528 ], [ -74.012407, 40.722307 ], [ -74.012559, 40.721498 ], [ -74.013057, 40.721557 ], [ -74.013617, 40.721614 ], [ -74.013686, 40.721324 ], [ -74.014505, 40.721421 ], [ -74.015222, 40.721511 ], [ -74.015656, 40.72156 ], [ -74.015819, 40.720641 ], [ -74.016224, 40.720689 ], [ -74.016337, 40.720701 ], [ -74.016354, 40.720697 ], [ -74.016391, 40.720546 ], [ -74.016426, 40.720351 ], [ -74.016214, 40.720328 ], [ -74.015768, 40.720278 ], [ -74.015771, 40.720249 ], [ -74.015607, 40.720225 ], [ -74.015335, 40.720188 ], [ -74.01495, 40.720139 ], [ -74.014578, 40.720097 ], [ -74.014319, 40.720066 ], [ -74.014042, 40.720036 ], [ -74.014032, 40.720071 ], [ -74.013451, 40.72 ], [ -74.013486, 40.719785 ], [ -74.012952, 40.719722 ], [ -74.012975, 40.719603 ], [ -74.01308, 40.719089 ], [ -74.013181, 40.718643 ], [ -74.013261, 40.718289 ], [ -74.012663, 40.718221 ], [ -74.012742, 40.717828 ], [ -74.01279, 40.717622 ], [ -74.012891, 40.71723 ], [ -74.013194, 40.716227 ], [ -74.013661, 40.714334 ], [ -74.013897, 40.713623 ], [ -74.013683, 40.713593 ], [ -74.013561, 40.713571 ], [ -74.013468, 40.713538 ], [ -74.012589, 40.713137 ], [ -74.01248, 40.713132 ], [ -74.011734, 40.712811 ], [ -74.010563, 40.712291 ], [ -74.010132, 40.712092 ], [ -74.010154, 40.712054 ] ] ] ] } } ] } ]