Query for census block records based on a geometry string.

GET {{baseUrl}}/census/us/blocks/geometry?wkt=POINT(-117.852723 33.63799)&bufferDistance=50&bufferUnit=m

Get states based on a WKT (well-known text) geometry string.

Examples:

  • POINT(-122.40317865990883 45.585729937697515)
  • LINESTRING (-122.40581795357949 45.58497908445598,-122.40325376176125 45.58627054581282)
  • POLYGON ((-122.4032877944377 45.58629457984625,-122.40264406427413 45.585697658341736,-122.40184476598769 45.58610686936547,-122.40244558080703 45.586688769812724,-122.4032877944377 45.58629457984625))

Request Params

KeyDatatypeRequiredDescription
wktstring(Required) The geometry of the location expressed in WKT (well-known text) format.
bufferDistancenumberBuffer distance expressed in 'bufferUnits.'
bufferUnitstringThe unit type to apply to the buffer (e.g., m=meters, km=kilometers, ft=feet, or mi=miles).

HEADERS

KeyDatatypeRequiredDescription
Acceptstring

RESPONSES

status: OK

{"$metadata":{"geogcs":{"epgs":"4326"},"recordSet":{"totalRecords":99,"bbox":{"xMax":-23853034.220937192,"xMin":-36454057.480742685,"yMax":-44062023.45520516,"yMin":17318178.924581543}},"bbox":76795612.823879},"$ref":"dolo","censusBlocks":[{"$ref":"ut labore i","censusBlockGroup":{"$ref":"dolor ullamco ea Duis","id":"ea Lorem n"},"censusTract":{"$ref":"sed nisi culpa","id":"ips"},"id":"quis"},{"$ref":"ad nisi sit aute","censusBlockGroup":{"$ref":"Duis anim","id":"consectetur"},"censusTract":{"$ref":"dolor esse et qui","id":"deserunt eiusmod irure labore"},"id":"qu"}]}