{ "name": "NearbyFacilityFinder", "displayName": "Find_nearby_Facilities", "description": "Return nearest N points for input point based on list of featureclasses configured in service.", "category": "", "helpUrl": "http://mnsegis.gov.tt/arcgis/rest/directories/arcgisoutput/gpservices/NearbyFacilityFinder_GPServer/gpservices_NearbyFacilityFinder/NearbyFacilityFinder.htm", "executionType": "esriExecutionTypeAsynchronous", "parameters": [ { "name": "X", "dataType": "GPDouble", "displayName": "X coordinate", "description": "x coordinate of point in webmercator units.", "direction": "esriGPParameterDirectionInput", "defaultValue": 678111, "parameterType": "esriGPParameterTypeRequired", "category": "" }, { "name": "Y", "dataType": "GPDouble", "displayName": "Y coordinate", "description": "y coordinate in units of the featureclass (web mercator)", "direction": "esriGPParameterDirectionInput", "defaultValue": 1181385, "parameterType": "esriGPParameterTypeRequired", "category": "" }, { "name": "N", "dataType": "GPLong", "displayName": "N closest", "description": "How many points to return for each featureclass", "direction": "esriGPParameterDirectionInput", "defaultValue": 3, "parameterType": "esriGPParameterTypeRequired", "category": "" }, { "name": "CutoffDistance", "dataType": "GPDouble", "displayName": "Cutoff Distance", "description": "Farthest distance to search.", "direction": "esriGPParameterDirectionInput", "defaultValue": 10000, "parameterType": "esriGPParameterTypeRequired", "category": "" }, { "name": "Facility_Types", "dataType": "GPMultiValue:GPString", "displayName": "Facility Types", "description": "checklist of facility types that are configured on the server", "direction": "esriGPParameterDirectionInput", "defaultValue": [ "Fire" ], "parameterType": "esriGPParameterTypeRequired", "category": "", "choiceList": [ "Fire", "Police" ] }, { "name": "NearestFacilities", "dataType": "GPString", "displayName": "N nearest facilities", "description": "", "direction": "esriGPParameterDirectionOutput", "defaultValue": { "displayFieldName": "", "fieldAliases": { "OID": "OID", "FacilityType": "FacilityType", "FacilityOID": "FacilityOID", "FacilityName": "FacilityName", "Distance": "Distance" }, "geometryType": "esriGeometryPolyline", "spatialReference": { "wkid": 32620, "latestWkid": 32620 }, "fields": [ { "name": "OID", "type": "esriFieldTypeOID", "alias": "OID" }, { "name": "FacilityType", "type": "esriFieldTypeString", "alias": "FacilityType", "length": 32 }, { "name": "FacilityOID", "type": "esriFieldTypeInteger", "alias": "FacilityOID" }, { "name": "FacilityName", "type": "esriFieldTypeString", "alias": "FacilityName", "length": 64 }, { "name": "Distance", "type": "esriFieldTypeDouble", "alias": "Distance" } ], "features": [ { "attributes": { "OID": 1, "FacilityType": "Fire_Station", "FacilityOID": 16, "FacilityName": "Tunapuna Fire Station", "Distance": 4399.846250316243 }, "geometry": { "paths": [ [ [ 678111, 1181385 ], [ 676245.3014000002, 1177400.3023000006 ] ] ] } }, { "attributes": { "OID": 2, "FacilityType": "Fire_Station", "FacilityOID": 15, "FacilityName": "San Juan Fire Station", "Distance": 9552.293854348656 }, "geometry": { "paths": [ [ [ 678111, 1181385 ], [ 669300.8419000003, 1177693.4648000002 ] ] ] } }, { "attributes": { "OID": 3, "FacilityType": "Fire_Station", "FacilityOID": 13, "FacilityName": "Piarco Fire Station", "Distance": 9756.06647222301 }, "geometry": { "paths": [ [ [ 678111, 1181385 ], [ 680727.9474999998, 1171986.4671999998 ] ] ] } } ] }, "parameterType": "esriGPParameterTypeDerived", "category": "" } ] }