API Technical Discussions

API - Pass a point to server return data

Newbie question.


What I want to do is given an x, y coordinate, I want to pass it to a Census server and have it return data for the block group it intersects. This is an example of what I would like: http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Demographics/ESRI_Census_USA/MapServer/1/query?text=&geometry=-95.8239%2C+36.0729&geometryType=esriGeometryPoint&inSR=&spatialRel=esriSpatialRelIntersects&returnCountOnly=false&returnIdsOnly=false&returnGeometry=true&outFields=*&f=pjson


I have tried doing (which does not return any features): http://tigerweb.geo.census.gov/arcgis/rest/services/TIGERweb/tigerWMS_Census2010/MapServer/16/query?geometry=-95.832539%2C36.049056&geometryType=esriGeometryPoint&inSR=&spatialRel=esriSpatialRelIntersects&outFields=*&returnGeometry=true&returnIdsOnly=false&returnCountOnly=false&returnZ=false&returnM=false&gdbVersion=&returnDistinctValues=false&f=pjson


Does TigerWeb require an API key, and if so, what is the format for inserting it into the http string?


Later, I would like to pass the server a polygon and have it return the summation of say population within the block groups that intersect the given polygon.



0 votes
0 up votes
0 down votes
Idea No. 351