βœ… 3. Find closest fire stations (get output_routes)

POST https://{{logistics-service}}.arcgis.com/arcgis/rest/services/World/ClosestFacility/GPServer/FindClosestFacilities/jobs/:job-id/results/Output_Routes

Request Body

[{"name"=>"f", "value"=>"json", "datatype"=>"string"}, {"name"=>"token", "value"=>"{{access_token}}", "datatype"=>"string"}]

RESPONSES

status: OK

{"paramName":"Output_Routes","dataType":"GPFeatureRecordSetLayer","value":{"displayFieldName":"","geometryType":"esriGeometryPolyline","spatialReference":{"wkid":4326,"latestWkid":4326},"fields":[{"name":"ObjectID","type":"esriFieldTypeOID","alias":"ObjectID"},{"name":"FacilityRank","type":"esriFieldTypeInteger","alias":"FacilityRank"},{"name":"Name","type":"esriFieldTypeString","alias":"Name","length":1024},{"name":"IncidentCurbApproach","type":"esriFieldTypeInteger","alias":"IncidentCurbApproach"},{"name":"FacilityCurbApproach","type":"esriFieldTypeInteger","alias":"FacilityCurbApproach"},{"name":"StartTime","type":"esriFieldTypeDate","alias":"StartTime","length":16},{"name":"EndTime","type":"esriFieldTypeDate","alias":"EndTime","length":16},{"name":"StartTimeUTC","type":"esriFieldTypeDate","alias":"StartTimeUTC","length":16},{"name":"EndTimeUTC","type":"esriFieldTypeDate","alias":"EndTimeUTC","length":16},{"name":"FacilityID","type":"esriFieldTypeString","alias":"FacilityID","length":500},{"name":"IncidentID","type":"esriFieldTypeString","alias":"IncidentID","length":500},{"name":"Total_Miles","type":"esriFieldTypeDouble","alias":"Total_Miles"},{"name":"Total_Kilometers","type":"esriFieldTypeDouble","alias":"Total_Kilometers"},{"name":"Total_Minutes","type":"esriFieldTypeDouble","alias":"Total_Minutes"},{"name":"FacilityOID","type":"esriFieldTypeInteger","alias":"FacilityOID"},{"name":"IncidentOID","type":"esriFieldTypeInteger","alias":"IncidentOID"},{"name":"Shape_Length","type":"esriFieldTypeDouble","alias":"Shape_Length"}],"features":[{"attributes":{"ObjectID":1,"FacilityRank":1,"Name":"Station 21 - Eastbank/Hawthrone - 1020 SE 7th Ave, Portland, Oregon, 97214","IncidentCurbApproach":2,"FacilityCurbApproach":2,"StartTime":1611676800000,"EndTime":1611677010050,"StartTimeUTC":1611705600000,"EndTimeUTC":1611705810050,"FacilityID":null,"IncidentID":null,"Total_Miles":0.6712759641169775,"Total_Kilometers":1.0803161058280848,"Total_Minutes":3.5008302147758044,"FacilityOID":30,"IncidentOID":1,"Shape_Length":0.01275397030456495},"geometry":{"paths":[[[-122.66823543599997,45.51298000000003],[-122.66709999999995,45.51298000000003],[-122.66651999999999,45.51298000000003],[-122.66584999999998,45.51294000000007],[-122.66585999999995,45.51368000000008],[-122.66536999999994,45.51367000000005],[-122.66481999999996,45.51366000000007],[-122.66382999999996,45.51367000000005],[-122.66281999999995,45.51367000000005],[-122.66279999999995,45.51439000000005],[-122.66181999999998,45.51439000000005],[-122.66076999999996,45.51439000000005],[-122.66004999999996,45.514380000000074],[-122.65973999999994,45.514380000000074],[-122.65973999999994,45.51454000000007],[-122.65972999999997,45.514740000000074],[-122.65972999999997,45.514950000000056],[-122.65972999999997,45.51509000000004],[-122.65912999999995,45.51508000000007],[-122.65890999999999,45.51508000000007],[-122.65867999999995,45.51508000000007],[-122.65844999999996,45.51508000000007],[-122.65798999999998,45.51508000000007],[-122.65798999999998,45.51543635000007]]]}},{"attributes":{"ObjectID":2,"FacilityRank":2,"Name":" Station 01 - Old Town - 1020 SE 7th Ave, Portland, Oregon, 97214","IncidentCurbApproach":1,"FacilityCurbApproach":2,"StartTime":1611676800000,"EndTime":1611677065777,"StartTimeUTC":1611705600000,"EndTimeUTC":1611705865777,"FacilityID":null,"IncidentID":null,"Total_Miles":1.2114367334364797,"Total_Kilometers":1.9496223375802735,"Total_Minutes":4.429614829272075,"FacilityOID":13,"IncidentOID":1,"Shape_Length":0.022330709052904407},"geometry":{"paths":[[[-122.67076347099999,45.521576209000045],[-122.67048999999997,45.521510000000035],[-122.67081999999999,45.520800000000065],[-122.67085999999995,45.52073000000007],[-122.67140999999998,45.51971000000003],[-122.67159999999996,45.51938000000007],[-122.67174999999997,45.51909000000006],[-122.67206999999996,45.518560000000036],[-122.67215999999996,45.51839000000007],[-122.67226,45.518200000000036],[-122.67240999999996,45.51791000000003],[-122.67258999999996,45.517580000000066],[-122.67314999999996,45.51779000000005],[-122.67320999999998,45.518080000000054],[-122.67300999999998,45.51828000000006],[-122.67237999999998,45.51842000000005],[-122.67215999999996,45.51839000000007],[-122.67196999999999,45.51836000000003],[-122.67170999999996,45.51834000000008],[-122.67154,45.51833000000005],[-122.67120999999997,45.51824000000005],[-122.67107999999996,45.518200000000036],[-122.67061999999999,45.518080000000054],[-122.66861999999998,45.51753000000008],[-122.66830999999996,45.51745000000005],[-122.66802999999999,45.51737000000003],[-122.66773999999998,45.51725000000005],[-122.66757999999999,45.51719000000003],[-122.66746999999998,45.517130000000066],[-122.66720999999995,45.516980000000046],[-122.66707999999994,45.51692000000003],[-122.66682999999995,45.51682000000005],[-122.66615999999999,45.51660000000004],[-122.66579999999999,45.51656000000003],[-122.66481999999996,45.51655000000005],[-122.66377999999997,45.516530000000046],[-122.66276999999997,45.516530000000046],[-122.66180999999995,45.516530000000046],[-122.66148999999996,45.516530000000046],[-122.66074999999995,45.516530000000046],[-122.66008999999997,45.51652000000007],[-122.65973999999994,45.51652000000007],[-122.65867999999995,45.516530000000046],[-122.65866999999997,45.515810000000045],[-122.65798999999998,45.515810000000045],[-122.65798999999998,45.51543635000007]]]}}],"exceededTransferLimit":false}}