Methods

Method detail for: getGeoIDByCoord

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 its ID.

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:

Maponics Neighborhood Boundaries North AmericaClick 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 Rest Of WorldClick To ViewClick To View

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

Maponics Neighborhood Boundaries WorldwideClick To ViewClick To View

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

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>getGeoIDByCoord</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":"getGeoIDByCoord", "returnType":"json", "parameters":{ "lat":"40.713734", "lon":"-74.011683" } } ] }
<?xml version="1.0" encoding="UTF-8" ?> <data> <request> <item> <zip>10007</zip> </item> </request> </data>
[ { "resultcode":0, "message":"Return OK", "requestid":"01-1460" }, [ { "nid":"7658" } ] ]