getLayers

GET https://{{base_url}}/v1/layers-radius/{layer}/{zoom}/?lon={longitude}&lat={latitude}&radius={radius}&srid=4326&riskData={showData}

Returns geospatial and risk data in geoJSON format to be used as map layers.

Accepts either the public or private api keys.

Path parameters:

* layer: ‘crime’ | ‘flood’ | ‘wildfire’ | ‘earthquake’ | ‘storm’
* zoomLevel: ‘auto’ (recommended) | ‘block’ | ‘blockgroup’ | ‘county’ | ‘state’

Query parameters:

  1. radius: number (in meters) - max 150K. Certain thresholds increase zoomLevel
  2. lat: latitude of the location
  3. lon: longitude of the location
  4. srid: use '4326'
  5. showData*: 'true' to show additional data for every polygon. This will increase the payload size.

All parameters but showData are required. Block and blockgroup are zoom levels equivalent to the size of the average census block and census block groups. Leaving 'auto' as zoom level will automatically adjust it to the size of your provided radius.

Returns

features:

  1. geometry: geoJSON data to be used for map layers

properties:

  1. score: risk score ('high' or 'moderate') for the selected layer type risk.
  2. data: if the parameter riskData is set to true, the following will be returned as well

Data for flood layers

  1. floodZoneId: Flood Zone Identifier
  2. floodZone: FEMA code used to describe flood risk
  3. zoneSubty: Additional info regarding the FEMA code used to describe flood risk

Data for earthquake layer

  1. mercalliIndex: Mercalli intensity of the earthquake happening with a 2% probability over 50 years

Data for crime layer

  1. source: indicates whether the data was observed or predicted.
  2. medianHouseholdIncome: median household income in the block group including the provided location
  3. percentUnemployed: unemployment rate in the block group including the provided location
  4. population: total population in the block group including the provided location
  5. populationDensity: population density in the block group including the provided location
  6. povertyRate: poverty rate in the block group including the provided location
  7. policeDepartmentsNearby: number of police departments within 5 miles.
  8. violentCrimeNumber: yearly number of violent crimes observed or predicted in the block group (including simple assaults).

Data for storm layer

  1. riskScoreHurricanes: Hurricanes sub-score based on recent frequency and intensity.
  2. riskScoreTornadoes: Tornadoes sub-score based on past frequency and intensity.
  3. riskScoreHailStorms: Hail sub-score, based on past frequency and intensity.
  4. riskScoreSnowStorms: Snowstorms sub-score based on past frequency and intensity.
  5. riskScoreBlizzard: Blizzard sub-score based on past frequency and intensity.

Data for wildfire layer

  1. avgTempIncrease: average summer temperature expected increase under a moderate climate scenario (RCP4.5) for two Regional Climate Models, between 1950-2005 and 2006-2100.
  2. burnRiskDistribution: proportion of the county including the provided location subject to a very high, high, moderate, low or very low wildfire hazard potential.

Request Params

KeyDatatypeRequiredDescription
lonstring
latstring
radiusstring
sridnumber
riskDatastring

HEADERS

KeyDatatypeRequiredDescription
Apikeystring