Skip to main content

geocode results

Comments

2 comments

  • Permanently deleted user
    'Geocode' Activity in Workflow returns 'Results' with the data type as 'IEnumerable<AddressCandidate>', which you can find out by mouse-hover on the 'Results' label on the Workflow Designer.

     

    You seems to assign the 'Results' as a variable 'geocoderesult' on your workflow, right.

     

    Having said it, as you, you can access like geocoderesult[0].address etc. Another properties of the AddressCandidte datatype will be found as the Intelli-sense when you check  on Workflow-Designer - Edit Menu - Enable Intellisense, then add 'Assign' activity to see which property of the your geocoderesult can support on the For-each loop.

     

    Basically, check this Json response on http://geocode.arcgis.com/arcgis/rest/services/World/GeocodeServer/findAddressCandidates?SingleLine=180%20W%203rd%20St,%20Garden%20City,%20Colorado,%20USA&magicKey=&countryCode=USA&f=pjson&dojo.preventCache=1454633623425

     

    under "candidtes", you have 'address', 'location', 'score' etc. for this online geocode.

     

    Also, I would recommend to check what the response from Geocode activity by Fiddler if you have not used while you are running the workflow with the Geocode activity to see what the response looks like, which will be th e one above url sample.

     

    Wish this help out to understand and to test.

     

    cheers,

     

    Munhwan 
    0
  • Tyson Schoepflin

    I'm not really following how the outFields works on the geocoder.

     

    The result from:

    http://geocode.arcgis.com/arcgis/rest/services/World/GeocodeServer/findAddressCandidates

    The json format of returned candidates is:

    {"address": "235 NW 4th St, Corvallis, Oregon, 97330", "location": { "x": -123.26110178209956, "y": 44.566239877315546 }, "score": 100, "attributes": { ALL attributes are in here }}

    If I specify individual fields in the outFields they only work with first level attributes (address, location, score).  If I add any field from the "attributes" name/value pair they do not show up.  It appears that outFields is only referencing the first level of json name/value pairs and nothing deeper.

    Also, using ListToFeatureSet fails to grab the geometry from the AddressCandidates.  I can only get the geometry to work if I assign it manually by looping over the AddressCandidates.

    0

Please sign in to leave a comment.