EstimationQuery
EstimationQuery estimates attribute table data for a geometry -- either a user-provided WKT geometry or a feature in the Mapfluence database. For example:
- Get the number of uninsured people in the polygon you consider to be your neighborhood.
- Estimate the number of families living in a poverty in a given school district.
Table of Contents
The Basics
Using this document
The examples in this document are not URL-escaped, so they will not work directly in the browser. Make sure to properly escape your URLs.
Constructing URLs
Base Path
The base path for EstimationQuery requests is:
http://spatial.mapfluence.com/estimate.<format>
where <format> is either json or geojson and specifies the reponse format.
select
Use the select argument to choose attribute table fields to estimate. To estimate the number of households in a polygon:
select=us_census00.stats.cnt_hh in='POLYGON((-93 41,-93 42,-94 42,-94 41,-93 41))' using=us_census00.blkgrp_geom
Keep in mind that not all fields are estimatable. For example, you cannot estimate character fields. The following data types are estimable:
- CountField
- PopAverageField
- AreaAverageField
- MedianField
- PopPercentField
- AreaPercentField
- RankField
- PercentageField
- PortionField
- PopPortionField
The data catalog contains information about field data types.
See SpatialQuery select for details on specifying attribute table fields.
in (required)
Use 'in' to specify the geometry (or feature) for which you wish to estimate data.
This may be a WKT geometry, as in this example which estimates the number of Unitarian Universalist adherents within 25 miles of Asheville, NC:
select=religion.county_data.unituniv_adherents in='RANGE(25mi POINT(-82.554 35.601))' using=us_census00.county_geom
or a feature ID, as in this example, which estimates the number of families living in poverty in the Minneapolis school district.
select=us_census00.stats.cnt_fampov in=685210 using=us_census00.blkgrp_geom
using (required)
A geometry dataset for which the data you wish to estimate exists. Specifying a smaller geometry dataset (e.g. using counties rather than states) will give more accurate results, and specifying a larger geometry dataset will give a faster response.