What is the best way to create an ArcGIS Server Geoprocessing Service that accepts an address (such as a json object or text from the JSAPI) to geocode a point, then... find the distance to a polygon and have that service return the distance ?
I've been reading up on creating a model in model builder and then use that result to publish to ArcGIS Server.
Would that be the correct way of achieving this? If so, are there any examples of creating a model that utilizes the "Geocode Address" tool to accept an address/zone text string instead of an input table.
Any help would be very much appreciated.