KeyGlobalFacts from a FeatureSet (multiple locations) and 1 mile radius
GET https://{{geoenrich-service}}.arcgis.com/arcgis/rest/services/World/geoenrichmentserver/GeoEnrichment/Enrich?studyareas=[{"FeatureSet":{"objectIdFieldName":"OBJECTID","globalIdFieldName":"","geometryType":"esriGeometryPoint","spatialReference":{"wkid":102100,"latestWkid":3857},"fields":[{"name":"OBJECTID","type":"esriFieldTypeOID","alias":"OBJECTID","sqlType":"sqlTypeInteger","domain":null,"defaultValue":null},{"name":"Station_ID","type":"esriFieldTypeString","alias":"Station_ID","sqlType":"sqlTypeNVarchar","length":255,"domain":null,"defaultValue":null},{"name":"FirstOfAddress","type":"esriFieldTypeString","alias":"FirstOfAddress","sqlType":"sqlTypeNVarchar","length":255,"domain":null,"defaultValue":null},{"name":"Price","type":"esriFieldTypeDouble","alias":"Price","sqlType":"sqlTypeDecimal","domain":null,"defaultValue":null},{"name":"UniqueID","type":"esriFieldTypeInteger","alias":"UniqueID","sqlType":"sqlTypeInteger","domain":null,"defaultValue":null}],"features":[{"attributes":{"OBJECTID":1,"Station_ID":"202382","FirstOfAddress":"12030ROSECRANSAVE","Price":2.95716667,"UniqueID":512},"geometry":{"x":-13144272.4606,"y":4015682.7760000005}},{"attributes":{"OBJECTID":2,"Station_ID":"517080","FirstOfAddress":"2402EANAHEIMST","Price":2.95233333,"UniqueID":1256},"geometry":{"x":-13161572.144000001,"y":3999537.5165000036}},{"attributes":{"OBJECTID":3,"Station_ID":"521883","FirstOfAddress":"1660W25THST","Price":2.919,"UniqueID":1306},"geometry":{"x":-13170715.4594,"y":3991785.8429000005}}]}}]&datacollections=&analysisvariables=&studyareasoptions={"areaType":"RingBuffer","BufferRadii":[11]}&usedata=&f=pjson&token={{access_token}}
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
studyareas | string | ||
datacollections | null | ||
analysisvariables | null | ||
studyareasoptions | string | ||
usedata | null | ||
f | string | ||
token | string |
RESPONSES
status: OK
{"results":[{"paramName":"GeoEnrichmentResult","dataType":"GeoEnrichmentResult","value":{"version":"2.0","FeatureSet":[{"displayFieldName":"","fieldAliases":{"ID":"Id","OBJECTID_0":"Object ID","sourceCountry":"Country code","OBJECTID":"OBJECTID","UniqueID":"UniqueID","FirstOfAddress":"FirstOfAddress","Price":"Price","Station_ID":"Station_ID","areaType":"Area type","bufferUnits":"Buffer units","bufferUnitsAlias":"Buffer units alias","bufferRadii":"Buffer radii","aggregationMethod":"Aggregation method","populationToPolygonSizeRating":"Population to polygon size rating for the country","apportionmentConfidence":"Apportionment confidence for the country","HasData":"Has data","TOTPOP":"Total Population","TOTHH":"Total Households","AVGHHSZ":"Average Household Size","TOTMALES":"Male Population","TOTFEMALES":"Female Population"},"spatialReference":{"wkid":4326,"latestWkid":4326},"fields":[{"name":"ID","alias":"Id","type":"esriFieldTypeString","length":256},{"name":"OBJECTID_0","alias":"Object ID","type":"esriFieldTypeOID"},{"name":"sourceCountry","alias":"Country code","type":"esriFieldTypeString","length":256},{"name":"OBJECTID","alias":"OBJECTID","type":"esriFieldTypeInteger"},{"name":"UniqueID","alias":"UniqueID","type":"esriFieldTypeInteger"},{"name":"FirstOfAddress","alias":"FirstOfAddress","type":"esriFieldTypeString","length":256},{"name":"Price","alias":"Price","type":"esriFieldTypeDouble"},{"name":"Station_ID","alias":"Station_ID","type":"esriFieldTypeString","length":256},{"name":"areaType","alias":"Area type","type":"esriFieldTypeString","length":256},{"name":"bufferUnits","alias":"Buffer units","type":"esriFieldTypeString","length":256},{"name":"bufferUnitsAlias","alias":"Buffer units alias","type":"esriFieldTypeString","length":256},{"name":"bufferRadii","alias":"Buffer radii","type":"esriFieldTypeDouble"},{"name":"aggregationMethod","alias":"Aggregation method","type":"esriFieldTypeString","length":256},{"name":"populationToPolygonSizeRating","alias":"Population to polygon size rating for the country","type":"esriFieldTypeDouble"},{"name":"apportionmentConfidence","alias":"Apportionment confidence for the country","type":"esriFieldTypeDouble"},{"name":"HasData","alias":"Has data","type":"esriFieldTypeInteger"},{"name":"TOTPOP","alias":"Total Population","type":"esriFieldTypeDouble","fullName":"KeyGlobalFacts.TOTPOP","component":"demographics","decimals":0,"units":"count"},{"name":"TOTHH","alias":"Total Households","type":"esriFieldTypeDouble","fullName":"KeyGlobalFacts.TOTHH","component":"demographics","decimals":0,"units":"count"},{"name":"AVGHHSZ","alias":"Average Household Size","type":"esriFieldTypeDouble","fullName":"KeyGlobalFacts.AVGHHSZ","component":"scripts","decimals":2,"units":"count"},{"name":"TOTMALES","alias":"Male Population","type":"esriFieldTypeDouble","fullName":"KeyGlobalFacts.TOTMALES","component":"demographics","decimals":0,"units":"count"},{"name":"TOTFEMALES","alias":"Female Population","type":"esriFieldTypeDouble","fullName":"KeyGlobalFacts.TOTFEMALES","component":"demographics","decimals":0,"units":"count"}],"features":[{"attributes":{"ID":"0","OBJECTID_0":1,"sourceCountry":"US","OBJECTID":1,"UniqueID":512,"FirstOfAddress":"12030ROSECRANSAVE","Price":2.95716667,"Station_ID":"202382","areaType":"RingBuffer","bufferUnits":"esriMiles","bufferUnitsAlias":"Miles","bufferRadii":11,"aggregationMethod":"BlockApportionment:US.BlockGroups;PointsLayer:US.BlockPoints","populationToPolygonSizeRating":2.191,"apportionmentConfidence":2.576,"HasData":1,"TOTPOP":3056178,"TOTHH":882325,"AVGHHSZ":3.42,"TOTMALES":1500458,"TOTFEMALES":1555720}},{"attributes":{"ID":"1","OBJECTID_0":2,"sourceCountry":"US","OBJECTID":2,"UniqueID":1256,"FirstOfAddress":"2402EANAHEIMST","Price":2.95233333,"Station_ID":"517080","areaType":"RingBuffer","bufferUnits":"esriMiles","bufferUnitsAlias":"Miles","bufferRadii":11,"aggregationMethod":"BlockApportionment:US.BlockGroups;PointsLayer:US.BlockPoints","populationToPolygonSizeRating":2.191,"apportionmentConfidence":2.576,"HasData":1,"TOTPOP":1924930,"TOTHH":626270,"AVGHHSZ":3.03,"TOTMALES":941451,"TOTFEMALES":983479}},{"attributes":{"ID":"2","OBJECTID_0":3,"sourceCountry":"US","OBJECTID":3,"UniqueID":1306,"FirstOfAddress":"1660W25THST","Price":2.919,"Station_ID":"521883","areaType":"RingBuffer","bufferUnits":"esriMiles","bufferUnitsAlias":"Miles","bufferRadii":11,"aggregationMethod":"BlockApportionment:US.BlockGroups;PointsLayer:US.BlockPoints","populationToPolygonSizeRating":2.191,"apportionmentConfidence":2.576,"HasData":1,"TOTPOP":919925,"TOTHH":328600,"AVGHHSZ":2.76,"TOTMALES":453434,"TOTFEMALES":466491}}]}]}}],"messages":[]}