Select to view content in your preferred language

Zip codes within a GeometryService Buffer  (Get zip codes within diameter of x miles)

653
2
05-17-2012 02:47 PM
TimGeiges
New Contributor
With some help I was was easily able to draw a circle with a diameter of X miles which works great,
My question here is: Is there a way to pull all the zip codes within a circle that I have drawn using GeometryService Buffer?

I also will be using USPS AIS data to match up routes etc, but need to be able to pull the zip codes from the selected area first.

Any help is greatly appreciated,
Thanks.
Tags (2)
0 Kudos
2 Replies
RobertScheitlin__GISP
MVP Emeritus
Tim,

   You either need to find a existing zip code map service or publish one of your own with data you find. Then you just do a simple QueryTask to get the zips that intersect the polygon buffer you created.
0 Kudos
Nehas
by
Emerging Contributor
Hi,

I am also using GeometryService and intersection to get the line features that are intersecting my buffer. I am calling the following function on relationcomplete of my geometryservice.

private function relationCompleteHandler(event:GeometryServiceEvent):void
   {       
    var result:Array = event.result as Array;
    
    var score:int=0;
    Alert.show("Length of result"+result.length);
    var i:int=0;
    for(i=0;i<result.length;i++)
    {
     var obj1:Object = result;
        
    }
}


I want to retrieve the attribute of the features returned as result. I have searched the forums but could not find a way to retrive feature attributes from the GeometryServiceEvent object. There is no help in the documentation also.

Please help..
Thanks in advance.

-Neha
0 Kudos