How to get enrichment data 您所在的位置:网站首页 arcgis-97 How to get enrichment data

How to get enrichment data

2023-05-29 06:50| 来源: 网络整理| 查看: 265

To find local or global data for an area, you use the GeoEnrichment service. GeoEnrichment is the process of enhancing (enriching) existing data with additional location-based information about the people and places in a specific area. The enriched data can drive better understanding, analysis, and decision making.

You can build applications that use the service to:

Find demographics and other relevant characteristics within an area around a point.Choose from over 15,000 analysis variables in more than 130 countries and regions including demographics, lifestyle segmentation, consumer spending, and market potential.Enrich your own data with location based context about the people and places in an area.Analyze markets and consumers, identify underserved communities, and formulate better business and policy decisions.Note:

To learn more about the GeoEnrichment service, go to Data enrichment in the Mapping APIs and location services guide.

How to access the GeoEnrichment service

There is no direct integration with CesiumJS to access the GeoEnrichment service. To access the service in your application, you use the demographics and request modules from ArcGIS REST JS.

To access the service with ArcGIS REST JS, you typically perform the following steps:

Reference the appropriate package.Set the API key to authenticate the request.Define parameters to pass to the service.Call the service and handle the results.Tip:

If a library is not available to access a service, you can use the request library to define parameters and make requests to the service directly. This will require visiting the ArcGIS services reference to determine the required parameters.

ExampleFind demographic data

This example shows how to query demographic data from the GeoEnrichment service using ArcGIS REST JS. The default study area is a one mile buffer around a point. It returns facts from the default data collection, Key global facts.

Use dark colors for code blocksCopy                                                                                                                 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 CesiumJS: Get global data const apiKey = "YOUR_API_KEY"; Cesium.ArcGisMapService.defaultAccessToken = apiKey; const authentication = arcgisRest.ApiKeyManager.fromKey(apiKey); const arcGisImagery = Cesium.ArcGisMapServerImageryProvider.fromBasemapType(Cesium.ArcGisBaseMapType.SATELLITE, { enablePickFeatures:false }); const viewer = new Cesium.Viewer("cesiumContainer", { baseLayer: Cesium.ImageryLayer.fromProviderAsync(arcGisImagery), terrain: Cesium.Terrain.fromWorldTerrain(), timeline: false, animation: false, geocoder:false }); viewer.camera.setView({ destination : Cesium.Cartesian3.fromDegrees(15.347,41.361, 3000000), }); function getDemographics(longitude,latitude) { arcgisRest.queryDemographicData({ studyAreas: [{geometry: {x:longitude, y:latitude}}], dataCollections: ["KeyGlobalFacts"], authentication:authentication }) .then((response) => { const featureSet = response.results[0].value.FeatureSet; }) } getDemographics(12.3276,45.4388) Go to tutorialTutorialsGet global data

Query demographic information for locations around the world with the GeoEnrichment service.

Get local data

Query regional facts, spending trends, and psychographics with the GeoEnrichment service.



【本文地址】

公司简介

联系我们

今日新闻

    推荐新闻

    专题文章
      CopyRight 2018-2019 实验室设备网 版权所有