==== Jobs ==== .. _job-attributes: Job Attributes ============== .. tabularcolumns:: |l|L| +---------------------------+-----------------------------------------------------------+ | Attribute | Description | +===========================+===========================================================+ | number | The Job # for the given job. | +---------------------------+-----------------------------------------------------------+ | status | The current :doc:`status ` of the job. | +---------------------------+-----------------------------------------------------------+ | spray_date | The anticipated date the job will be sprayed. | +---------------------------+-----------------------------------------------------------+ | partnership | The :ref:`Partnership ` the job | | | belongs to. | +---------------------------+-----------------------------------------------------------+ | center | The lattitude and longitude of the center point of the | | | job's fields. Specifically, the center point of the | | | minimum bounding rectangle of all of the polygons that | | | make up the job. This is always expressed in the | | | EPSG:4326 spatial reference system. | +---------------------------+-----------------------------------------------------------+ | legal_state | The state the job is located in. | +---------------------------+-----------------------------------------------------------+ | legal_county | The county the job is located in. | +---------------------------+-----------------------------------------------------------+ | township | The township the job is located in. | +---------------------------+-----------------------------------------------------------+ | legal | The legal description of the job. | +---------------------------+-----------------------------------------------------------+ | sprayed_acres | The number of acres entered by the user when the job was | | | recorded. | +---------------------------+-----------------------------------------------------------+ | total_acres | The total acres for the job. This is the sum of all the | | | actual_acres of all fields for jobs that haven't reached | | | the Sprayed status. For sprayed jobs, this is the sum of | | | the job's sprayed_acres along with the sprayed_acres for | | | all other trips involved. | +---------------------------+-----------------------------------------------------------+ | grower | The :ref:`grower ` the job belongs to. | +---------------------------+-----------------------------------------------------------+ | job_type | The :ref:`job type ` of the job. | +---------------------------+-----------------------------------------------------------+ | job_category | The :ref:`job category ` of the | | | job. | +---------------------------+-----------------------------------------------------------+ | purpose | The :ref:`purpose ` of the job. | +---------------------------+-----------------------------------------------------------+ | pest | The optional user entered pest of the job. | +---------------------------+-----------------------------------------------------------+ | gpa | The target gallons per acre for the job. | +---------------------------+-----------------------------------------------------------+ | release_now | Indicates whether the job was entered as a Release Now | | | job. Release Now jobs require a release_start and | | | release_end dates. Once a Release Now job is accepted by | | | the applicator, the job will automatically be set to the | | | Released status and will be available for dispatching. | +---------------------------+-----------------------------------------------------------+ | release_start | The beginning of the release window. Jobs can be | | | scheduled for application begining on this date. | +---------------------------+-----------------------------------------------------------+ | release_end | The end of the release window. Jobs can be scheduled | | | for application before or on this date. Applicators | | | can define a minimum release window and in that case the | | | release_end must be at least that many days after the | | | release_start or the job can not be created. | +---------------------------+-----------------------------------------------------------+ | display_date | The current date that is shown in various places within | | | AgriSmart's systems. This date changes as the job moves | | | through the process and is for information purposes only. | +---------------------------+-----------------------------------------------------------+ | actual_spray_date | The date entered by the user when the job was recorded as | | | sprayed. | +---------------------------+-----------------------------------------------------------+ | spray_start_time | The start time entered by the user when the job was | | | recorded. | +---------------------------+-----------------------------------------------------------+ | spray_end_time | The end time entered by the user when the job was | | | recorded. | +---------------------------+-----------------------------------------------------------+ | spray_temp | The temperature entered by the user when the job was | | | recorded. | +---------------------------+-----------------------------------------------------------+ | spray_humidity | The humidity entered by the user when the job was | | | recorded. | +---------------------------+-----------------------------------------------------------+ | spray_wind_speed | The wind speed entered by the user when the job was | | | recorded. No units are assumed or enforced. | +---------------------------+-----------------------------------------------------------+ | spray_wind_direction | The wind direction entered by the user when the job was | | | recorded. | +---------------------------+-----------------------------------------------------------+ | spray_comment | An optional comment entered by the user when the job was | | | recorded. | +---------------------------+-----------------------------------------------------------+ | spray_log_files | Names of any log files entered by the user when the job | | | was recorded. | +---------------------------+-----------------------------------------------------------+ | use_end_weather | Indicates whether the user chose to recording ending | | | weather. | +---------------------------+-----------------------------------------------------------+ | spray_end_temp | The ending temperature entered by the user when the job | | | was recorded. | +---------------------------+-----------------------------------------------------------+ | spray_end_humidity | The ending humidity entered by the user when the job | | | was recorded. | +---------------------------+-----------------------------------------------------------+ | spray_end_wind_speed | The ending wind speed entered by the user when the job | | | was recorded. | +---------------------------+-----------------------------------------------------------+ | spray_end_wind_direction | The ending wind direction entered by the user when the | | | job was recorded. | +---------------------------+-----------------------------------------------------------+ | start_tach_hours | The engine tach hours reading at the begining of the | | | job. | +---------------------------+-----------------------------------------------------------+ | end_tach_hours | The engine tach hours reading at the end of the job. | +---------------------------+-----------------------------------------------------------+ | starts | The number of engine starts/takeoffs for the job. | +---------------------------+-----------------------------------------------------------+ | landings | The number of landings for the job. | +---------------------------+-----------------------------------------------------------+ | pilot | The :ref:`pilot ` assigned to the | | | job. | +---------------------------+-----------------------------------------------------------+ | plane | The :ref:`plane ` assigned to the job. | +---------------------------+-----------------------------------------------------------+ | crop | The :ref:`crop ` assigned to the job. | +---------------------------+-----------------------------------------------------------+ | sprayed_completely | Indicates if the job has been completely sprayed. | +---------------------------+-----------------------------------------------------------+ | processed | Indicates if the job has been marked processed by a user. | +---------------------------+-----------------------------------------------------------+ | customer_field_id | The user entered ID that allows users to identify Fields | | | across their systems. Also used for integration. | +---------------------------+-----------------------------------------------------------+ | airport | The :ref:`airport ` or facility that | | | the job was assigned to. | +---------------------------+-----------------------------------------------------------+ | fields | An array of :ref:`fields ` that define | | | the job's field boundaries. | +---------------------------+-----------------------------------------------------------+ | products | An array of :ref:`products ` to | | | be applied on this job. | +---------------------------+-----------------------------------------------------------+ | adjacent_crops | An array of | | | :ref:`adjacent crops ` to | | | be applied on this job. | +---------------------------+-----------------------------------------------------------+ | trips | An array of :ref:`trips ` to | | | for this job. | +---------------------------+-----------------------------------------------------------+ | comments | An array of :ref:`comments ` to | | | for this job. | +---------------------------+-----------------------------------------------------------+ | creator | The :ref:`user ` who caused this job to | | | get created in the third party system. When creating a | | | job via the API you only need to include the user's code | | | attribute in the creator attribute. If no matching user | | | is found for the given code, the creator will get set to | | | the user that the given API KeyID belongs to. | +---------------------------+-----------------------------------------------------------+ | rejected | Indicates whether the job has been rejected. | +---------------------------+-----------------------------------------------------------+ | rejected_reason | The reason the job was rejected. | +---------------------------+-----------------------------------------------------------+ Sample ------ :: { "number": 728674, "status": 400, "spray_date": "2016-07-18", "partnership": { "id": 382, "applicator": { "id": 12, "business_name": "Agrismart Aerial", "address": "PO Box 542", "city": "Red Oak", "state": "IA", "zip": "51566", "phone": "(800) 890-6945", "contact_first_name": "Larry", "contact_last_name": "Barmann", "min_release_window": null }, "retailer": { "id": 458, "name": "AgriSmart - Glenwood", "address": "PO Box 542", "city": "Red Oak", "state": "IA", "zip": "51566", "phone": "800 890-6945", "contact_first_name": "Larry", "contact_last_name": "Barmann" } }, "center": { "lat": 40.6704995369723, "lng": -93.240507483469 }, "legal_state": "IA", "legal_county": "Wayne", "township": "Jackson", "legal": "23-68N-21W", "sprayed_acres": 223.0, "total_acres": 685.0, "grower": { "id": 112619, "grower_id": "" }, "job_type": { "id": 1, "description": "Aerial Application" }, "job_category": { "id": 314, "description": "Liq - Burndown" }, "purpose": { "id": 1, "description": "Disease" }, "pest": "", "gpa": 2.0, "release_now": true, "release_start": "2016-07-18", "release_end": "2016-07-23", "display_date": "2019-04-02", "actual_spray_date": "2016-07-18", "spray_start_time": null, "spray_end_time": "05:44 PM", "spray_temp": 83.0, "spray_humidity": 66.0, "spray_wind_speed": 3.0, "spray_wind_direction": "127", "spray_comment": "", "spray_log_files": "test.log", "use_end_weather": true, "spray_end_temp": 83.0, "spray_end_humidity": 66.0, "spray_end_wind_speed": 3.0, "spray_end_wind_direction": "127", "start_tach_hours": 10.0, "end_tach_hours": 11.0, "starts": 2, "landings": 2, "pilot": { "id": 257, "user": { "id": 839, "login": "oscar1", "email": "", "first_name": "Oscar", "last_name": ".Rogator" }, "code": null, "business_name": "AgriSmart Ground", "pilot_pest_lic": "IA 123456", "business_pest_lic": "IA 567890", "pilot_license": "", "address": "100 Main Street", "city": "Red Oak", "state": "IA", "zip": "51566", "payment_terms": 1.5, "active": true }, "plane": { "plane_n_number": "Rogator 1" }, "crop": { "id": 143, "name": "-Unknown-" }, "sprayed_completely": true, "processed": true, "customer_field_id": null, "airport": { "id": 6011, "airport_id": 9, "name": "Atlantic Municipal Airport", "lat": 41.4038417, "lng": -95.0487436, "code": null }, "fields": [ { "name": "Field 1", "actual_acres": 281.0, "geom": { "type": "Polygon", "coordinates": [ [ [ -93.24216306209559, 40.66656894247198 ], [ -93.24253857135768, 40.66657301146179 ], [ -93.24251174926759, 40.66670728798529 ], [ -93.23139667510978, 40.666756115744995 ], [ -93.23141813278198, 40.66605624777339 ], [ -93.23549509048458, 40.664363513478996 ], [ -93.23965787887569, 40.66236147419769 ], [ -93.24128866195679, 40.66117324360649 ], [ -93.24319839477539, 40.659268775085295 ], [ -93.24573040008538, 40.656159654086295 ], [ -93.24875593185418, 40.65238293525619 ], [ -93.25023651123047, 40.652431773501995 ], [ -93.25023651123047, 40.65619221107779 ], [ -93.25017213821408, 40.656680564044194 ], [ -93.24995756149288, 40.65692473918679 ], [ -93.24997901916498, 40.65887810815519 ], [ -93.25019359588619, 40.66024543240109 ], [ -93.25019359588619, 40.66166156011009 ], [ -93.25038671493529, 40.661954548296286 ], [ -93.25045108795157, 40.66529126740329 ], [ -93.25034379959109, 40.66669101205749 ], [ -93.24626684188839, 40.66669101205749 ], [ -93.24480772018427, 40.66587721060088 ], [ -93.24405670166018, 40.665177333405985 ], [ -93.24390649795528, 40.66519360970319 ], [ -93.24409961700437, 40.66556796344369 ], [ -93.24452877044679, 40.665958591193395 ], [ -93.24562311172487, 40.66669101205749 ], [ -93.24328422546387, 40.66677239165699 ], [ -93.24321985244748, 40.66646314865059 ], [ -93.24216842651369, 40.666137628147396 ], [ -93.24216306209559, 40.66656894247198 ] ] ] } }, { "name": "Field 2", "actual_acres": 55.0, "geom": { "type": "Polygon", "coordinates": [ [ [ -93.24564543124673, 40.688601038715625 ], [ -93.24563302408613, 40.686288815936685 ], [ -93.24561946820316, 40.68565229773361 ], [ -93.24563008375371, 40.685487947103475 ], [ -93.24563093624872, 40.685217296329974 ], [ -93.24563711571761, 40.68498253396012 ], [ -93.24568302144068, 40.68148916888856 ], [ -93.24791998454398, 40.68150200824293 ], [ -93.24797709727251, 40.68215763066703 ], [ -93.24852563514834, 40.6825936175672 ], [ -93.24920497592572, 40.683257312319505 ], [ -93.24916353832414, 40.68861613868841 ], [ -93.24564543124673, 40.688601038715625 ] ] ] } }, { "name": "Field 3", "actual_acres": 82.0, "geom": { "type": "Polygon", "coordinates": [ [ [ -93.22656869888306, 40.68859481526591 ], [ -93.2265043258667, 40.68833448542927 ], [ -93.22558164596558, 40.68833448542927 ], [ -93.2250452041626, 40.68799280097536 ], [ -93.22631120681763, 40.68737451036736 ], [ -93.22489500045776, 40.68760230231139 ], [ -93.22405815124512, 40.68716298857928 ], [ -93.223135471344, 40.68714671764471 ], [ -93.22328567504883, 40.686560961354 ], [ -93.2229208946228, 40.68615418312303 ], [ -93.22343587875366, 40.685454518757886 ], [ -93.22345733642578, 40.68493383353306 ], [ -93.22384357452391, 40.68472230399852 ], [ -93.22427272796631, 40.68490129057146 ], [ -93.22566747665405, 40.68477111856609 ], [ -93.22590351104736, 40.68491756205425 ], [ -93.22626829147339, 40.68486874759393 ], [ -93.22588205337524, 40.68423415635652 ], [ -93.22534561157227, 40.68455958851511 ], [ -93.22420835494995, 40.68470603246804 ], [ -93.2241654396057, 40.68342056900813 ], [ -93.22457313537598, 40.68390872260892 ], [ -93.22545289993285, 40.68350192818986 ], [ -93.22547435760497, 40.68333920972706 ], [ -93.22453022003174, 40.6830788593603 ], [ -93.22444438934326, 40.68332293785893 ], [ -93.22420835494995, 40.68332293785893 ], [ -93.22418689727783, 40.68223271364498 ], [ -93.22390794754028, 40.68156555271897 ], [ -93.22412252426147, 40.68146791885259 ], [ -93.22920799255371, 40.68154928041783 ], [ -93.22903633117676, 40.681777092272156 ], [ -93.2276201248169, 40.68176082002267 ], [ -93.22884321212769, 40.681842181230365 ], [ -93.22901487350464, 40.68193981454852 ], [ -93.22903633117676, 40.68242797899421 ], [ -93.22946548461914, 40.68249306731685 ], [ -93.22937965393066, 40.683062587428616 ], [ -93.22789907455444, 40.683192762770894 ], [ -93.22916507720947, 40.683469384529104 ], [ -93.2291007041931, 40.683990081194764 ], [ -93.22811365127562, 40.68410398304813 ], [ -93.22815656661987, 40.684217884706854 ], [ -93.22914361953735, 40.68413652639909 ], [ -93.22933673858643, 40.68465721785284 ], [ -93.22847843170166, 40.68483620460056 ], [ -93.22731971740723, 40.68475484704754 ], [ -93.22725534439087, 40.685600960744445 ], [ -93.22764158248901, 40.685649774668455 ], [ -93.22828531265259, 40.68522671947258 ], [ -93.22937965393066, 40.68490129057146 ], [ -93.22957277297974, 40.684982647945695 ], [ -93.2298731803894, 40.68550333278916 ], [ -93.22834968566895, 40.686186725472865 ], [ -93.2274055480957, 40.68630062357221 ], [ -93.22832822799683, 40.68638197923826 ], [ -93.23000192642212, 40.68569858855671 ], [ -93.23030233383179, 40.68582875875061 ], [ -93.23028087615967, 40.68617045429993 ], [ -93.23002338409424, 40.686316894713364 ], [ -93.23021650314331, 40.6868212981188 ], [ -93.22895050048828, 40.68670740090935 ], [ -93.22884321212769, 40.686837569132834 ], [ -93.23021650314331, 40.6870002790547 ], [ -93.23028087615967, 40.687472135581565 ], [ -93.22858572006226, 40.687407052121316 ], [ -93.22856426239014, 40.687651114769515 ], [ -93.2297658920288, 40.68760230231139 ], [ -93.22845697402953, 40.6878951765239 ], [ -93.23038816452025, 40.68776501036612 ], [ -93.23030233383179, 40.68839956798378 ], [ -93.23010921478271, 40.68861108584693 ], [ -93.22656869888306, 40.68859481526591 ] ], [ [ -93.22626829147339, 40.68621926780683 ], [ -93.2261610031128, 40.68599147113545 ], [ -93.22528123855591, 40.686577232431596 ], [ -93.22470188140869, 40.686723671951164 ], [ -93.22478771209717, 40.68687011114899 ], [ -93.22611808776854, 40.68664231670225 ], [ -93.22626829147339, 40.68621926780683 ] ], [ [ -93.2243800163269, 40.68551960412497 ], [ -93.22463750839233, 40.68548706144939 ], [ -93.22461605072021, 40.68534061921256 ], [ -93.22407960891724, 40.6853568905881 ], [ -93.2243800163269, 40.68551960412497 ] ] ] } }, { "name": "Field 4", "actual_acres": 148.0, "geom": { "type": "Polygon", "coordinates": [ [ [ -93.21231132753657, 40.676054102922855 ], [ -93.21223902699654, 40.67429564899371 ], [ -93.21942697481963, 40.67123887046169 ], [ -93.22175239854546, 40.67024756489394 ], [ -93.22173060135152, 40.67413984291558 ], [ -93.22172430784909, 40.67526175824787 ], [ -93.22174392705664, 40.67763338737003 ], [ -93.22175295173642, 40.678724967228824 ], [ -93.22175956641158, 40.67889993112702 ], [ -93.22176191803476, 40.67980952919104 ], [ -93.22174735011743, 40.68109473351076 ], [ -93.21902255650286, 40.681092826672845 ], [ -93.2191265858799, 40.6807425680921 ], [ -93.2179094055093, 40.68077458253268 ], [ -93.2170788519657, 40.680738751848 ], [ -93.21706305606007, 40.680498527734315 ], [ -93.2171825030543, 40.68025803127268 ], [ -93.21800715842807, 40.67967298163644 ], [ -93.21857652152963, 40.67914562409348 ], [ -93.21907349374375, 40.6782896543986 ], [ -93.2194474267737, 40.67775121298983 ], [ -93.21965322005967, 40.67751892784479 ], [ -93.2195889701625, 40.67737910837688 ], [ -93.21964817955349, 40.677104409520325 ], [ -93.21987267940061, 40.676829395975155 ], [ -93.22035270559908, 40.67656533569631 ], [ -93.22083714806048, 40.67653273542525 ], [ -93.2210020344996, 40.676406567897324 ], [ -93.22097088417176, 40.67607483576534 ], [ -93.22088000262832, 40.67585762884603 ], [ -93.2206995617509, 40.675823641596516 ], [ -93.22048989575924, 40.67604143199865 ], [ -93.22034082763149, 40.67640783160987 ], [ -93.22020576898804, 40.676465294744105 ], [ -93.2201454710488, 40.676408204254855 ], [ -93.22014362701407, 40.675847594104916 ], [ -93.22026176270725, 40.67521810850029 ], [ -93.22000563582834, 40.67501265706906 ], [ -93.21979533134133, 40.6750359397952 ], [ -93.2199472192883, 40.675527617726196 ], [ -93.22000966002258, 40.67623684669845 ], [ -93.2197553964867, 40.67660343693581 ], [ -93.21951648369884, 40.677072985266804 ], [ -93.21936719478347, 40.67737073742373 ], [ -93.21914282907242, 40.6776915140774 ], [ -93.21892231695922, 40.67801535495015 ], [ -93.21868266922911, 40.67825607201412 ], [ -93.21846852389146, 40.678287737714136 ], [ -93.21831798408981, 40.67820793482282 ], [ -93.21830202319951, 40.67792192870293 ], [ -93.21832976457847, 40.67721252850884 ], [ -93.218239113889, 40.67706396567427 ], [ -93.21826970002974, 40.67668612653849 ], [ -93.21861158715481, 40.67615835154717 ], [ -93.21829664667354, 40.67635344603724 ], [ -93.21814639794052, 40.67636517110263 ], [ -93.21787545739366, 40.67622838954482 ], [ -93.21795431142885, 40.6772933255134 ], [ -93.21786609425037, 40.67788842882131 ], [ -93.21792777009708, 40.678368838269655 ], [ -93.21786993074936, 40.67906686294545 ], [ -93.21772076714984, 40.6794103769982 ], [ -93.21748083449472, 40.679650029022675 ], [ -93.21701607867045, 40.679915111572036 ], [ -93.21671562541836, 40.67994999917613 ], [ -93.2162490848271, 40.67974493433839 ], [ -93.21545074933843, 40.679174372364535 ], [ -93.21474208104681, 40.67844346279359 ], [ -93.21442462567798, 40.677860539085614 ], [ -93.21443837036843, 40.677460084318454 ], [ -93.21460246406447, 40.677082223350794 ], [ -93.21501077791287, 40.67668409738822 ], [ -93.2154907486671, 40.676397175217026 ], [ -93.21558043416263, 40.67624827355783 ], [ -93.21530651535984, 40.67638300583968 ], [ -93.2150065916231, 40.67657806335148 ], [ -93.21475123468868, 40.67661285286045 ], [ -93.21464560202381, 40.67647576515179 ], [ -93.21467476432368, 40.67620112464398 ], [ -93.21494388469753, 40.67576586230748 ], [ -93.21518669354683, 40.67531083813804 ], [ -93.21552739499218, 40.674975338854225 ], [ -93.21525723813212, 40.67507881270948 ], [ -93.21503623786924, 40.67525391295787 ], [ -93.21469120002806, 40.675437612600476 ], [ -93.21458587461152, 40.67539204400719 ], [ -93.21452498384598, 40.675151894107884 ], [ -93.21445078381879, 40.674819978846116 ], [ -93.21461257870665, 40.674350845415276 ], [ -93.21453718713327, 40.67427089782656 ], [ -93.2142954281224, 40.67505771962511 ], [ -93.21425162859195, 40.67545823932514 ], [ -93.21428267206072, 40.67576709133329 ], [ -93.21428399078395, 40.676178968349326 ], [ -93.21422534611698, 40.6766367209869 ], [ -93.2141210322149, 40.676911500754365 ], [ -93.21388128614628, 40.677129325902115 ], [ -93.21374611084754, 40.6771524584121 ], [ -93.21353961638536, 40.677167362581336 ], [ -93.21338901194238, 40.67706465315614 ], [ -93.21323367775382, 40.676684321043325 ], [ -93.21312793871738, 40.67651289083914 ], [ -93.21300146111004, 40.67637604729802 ], [ -93.21281127067648, 40.676170251078055 ], [ -93.21255223764862, 40.676202402941385 ], [ -93.21231132753657, 40.676054102922855 ] ] ] } }, { "name": "Field 5", "actual_acres": 119.0, "geom": { "type": "Polygon", "coordinates": [ [ [ -93.2687759399414, 40.673933407533724 ], [ -93.26010704040527, 40.67373811730146 ], [ -93.26130867004393, 40.66755363075944 ], [ -93.2687759399414, 40.66742342487791 ], [ -93.2687759399414, 40.673933407533724 ] ] ] } } ], "products": [ { "name": "2,4-D Amine 4#", "code": "", "rate": 100.0, "rate_type": 1, "price": 0, "blend_group": "", "total_price": 0.0 }, { "name": "11-0-0-24", "code": "", "rate": 100.0, "rate_type": 2, "price": 12.0, "blend_group": null, "total_price": 1200.0 } ], "adjacent_crops": [ { "crop": { "id": 66, "name": "Acreage" }, "description": "", "geom": { "type": "Polygon", "coordinates": [ [ [ -93.24083916738583, 40.670461107124126 ], [ -93.24084395839945, 40.668961312350305 ], [ -93.2408304973579, 40.66801498964214 ], [ -93.2421645417991, 40.668009713066866 ], [ -93.24286895776211, 40.6679960176983 ], [ -93.24285442912415, 40.667653589741846 ], [ -93.2428785329235, 40.6669502170792 ], [ -93.24373838916289, 40.666953819467146 ], [ -93.24563611567778, 40.66694605031976 ], [ -93.24564599082136, 40.66753509331237 ], [ -93.24564608378924, 40.667541083931575 ], [ -93.24564709846805, 40.667601584519616 ], [ -93.24564711251382, 40.66760218807581 ], [ -93.24564696759134, 40.667630403780365 ], [ -93.24563973334278, 40.669070242009816 ], [ -93.24563970076338, 40.66907748511005 ], [ -93.24563892713421, 40.66923100477608 ], [ -93.24539955766089, 40.669238522562665 ], [ -93.24482748960122, 40.668942268209804 ], [ -93.24454184543781, 40.668897109097585 ], [ -93.24419569955663, 40.66874910728681 ], [ -93.24392477869974, 40.66862383676564 ], [ -93.24383516646533, 40.66877275142254 ], [ -93.2441961168977, 40.66886351747199 ], [ -93.24440696625108, 40.6690003646351 ], [ -93.24478274709662, 40.669033891921906 ], [ -93.24532476411704, 40.669330210343624 ], [ -93.2456383058975, 40.66935511957189 ], [ -93.24563747880224, 40.669519864239604 ], [ -93.24563275466126, 40.6704604681896 ], [ -93.24564415412713, 40.67141957767451 ], [ -93.24561896892264, 40.671414415190974 ], [ -93.24540842137088, 40.67136909847769 ], [ -93.2450173195272, 40.67125551805144 ], [ -93.24470172652701, 40.67124474621451 ], [ -93.24443104523894, 40.67118811403995 ], [ -93.24373929697938, 40.671040842032575 ], [ -93.24369459324669, 40.671143906312224 ], [ -93.2441606565267, 40.6712115683259 ], [ -93.24537895599038, 40.67152933651941 ], [ -93.24564733373201, 40.67168631973269 ], [ -93.24566827597462, 40.67344645674675 ], [ -93.2456575087079, 40.67406543398209 ], [ -93.2432567385447, 40.6740782283819 ], [ -93.24233916638443, 40.67408409470239 ], [ -93.24086506011594, 40.674095845641816 ], [ -93.24083916738583, 40.670461107124126 ] ] ] } } ], "trips": [ { "id": 42980, "pilot": { "id": 257, "user": { "id": 839, "login": "oscar1", "email": "", "first_name": "Oscar", "last_name": ".Rogator" }, "code": null, "business_name": "AgriSmart Ground", "pilot_pest_lic": "IA 123456", "business_pest_lic": "IA 567890", "pilot_license": "", "address": "100 Main Street", "city": "Red Oak", "state": "IA", "zip": "51566", "payment_terms": 1.5, "active": true }, "plane": { "plane_n_number": "Rogator 1" }, "actual_spray_date": "2019-04-02", "sprayed_acres": 100.0, "multiple_pass_acres": null, "spray_start_time": "04:46 PM", "spray_end_time": "05:46 PM", "spray_temp": 52.0, "spray_humidity": 46.0, "spray_wind_speed": 7.0, "spray_wind_direction": "282", "spray_comment": null, "spray_log_files": "", "spray_end_temp": 53.0, "spray_end_humidity": 44.0, "spray_end_wind_speed": 6.0, "spray_end_wind_direction": "275", "start_tach_hours": null, "end_tach_hours": null, "starts": null, "landings": null }, { "id": 42981, "pilot": { "id": 257, "user": { "id": 839, "login": "oscar1", "email": "", "first_name": "Oscar", "last_name": ".Rogator" }, "code": null, "business_name": "AgriSmart Ground", "pilot_pest_lic": "IA 123456", "business_pest_lic": "IA 567890", "pilot_license": "", "address": "100 Main Street", "city": "Red Oak", "state": "IA", "zip": "51566", "payment_terms": 1.5, "active": true }, "plane": { "plane_n_number": "Rogator 1" }, "actual_spray_date": "2019-04-02", "sprayed_acres": 362.0, "multiple_pass_acres": null, "spray_start_time": "05:47 PM", "spray_end_time": null, "spray_temp": 53.0, "spray_humidity": 44.0, "spray_wind_speed": 6.0, "spray_wind_direction": "275", "spray_comment": null, "spray_log_files": "", "spray_end_temp": null, "spray_end_humidity": null, "spray_end_wind_speed": null, "spray_end_wind_direction": "", "start_tach_hours": null, "end_tach_hours": null, "starts": null, "landings": null } ], "comments": [ { "content": "Test comment one.\n\nContinued after newlines." }, { "content": "Another comment" } ] } Endpoints ========= /api/jobs/[Job #] ----------------- GET ~~~ Returns the attributes for the given Job #. Parameters ********** The Job # is included in the URL of the request and no other parameters are required. Returns ******* Returns the :ref:`attributes ` for the given Job #. /api/jobs --------- POST ~~~~ This method can be used to create a new job. Parameters ********** This method requires a job in the body of the request. Required Job Attributes ^^^^^^^^^^^^^^^^^^^^^^^ .. tabularcolumns:: |l|L| =================================== =========== Attribute Description =================================== =========== partnership Only the id of the :ref:`partnership ` is required for this method. grower Only the grower_id of the :ref:`grower ` is required for this method. job_type Only the id of the :ref:`job type ` is required for this method. job_category Only the id of the :ref:`job category ` is required for this method. crop Only the id of the :ref:`crop ` is required for this method. purpose Only the id of the :ref:`purpose ` is required for this method. release_now Indicate whether this job should be a :ref:`release_now ` job. release_start Include the :ref:`release_start ` date for the job. The release_start and release_end attributes must satisfy the :ref:`min_release_window ` of the applicator if the release_now attribute is true. release_end Include the :ref:`release_end ` date for the job. The release_start and release_end attributes must satisfy the :ref:`min_release_window ` of the applicator if the release_now attribute is true. spray_date Include the anticipated :ref:`spray_date ` of the job if release_now is false. fields An array of :ref:`fields ` is required. These must have geom attributes containing only GeoJSON Polygons expressed using the EPSG:4326 spatial reference system. See the :doc:`fields` documentation for more info. products An array of :ref:`products ` is required. =================================== =========== Optional Job Attributes ^^^^^^^^^^^^^^^^^^^^^^^ .. tabularcolumns:: |l|L| =================================== =========== Attribute Description =================================== =========== pest Can include an optional :ref:`pest ` attribute. gpa Can include an optional :ref:`gpa ` attribute. comments Can include an optional array of :ref:`comments `. =================================== =========== Sample ^^^^^^ :: { "spray_date": "2015/07/17", "partnership": { "id": 382 }, "grower": { "grower_id": "Fink" }, "job_type": { "id": 1 }, "job_category": { "id": 314 }, "purpose": { "id": 1 }, "pest": "", "gpa": 2, "release_now": true, "release_start": "2016/08/01", "release_end": "2016/12/31", "customer_field_id": "1234", "crop": { "id": 143 }, "fields": [ { "name": "", "actual_acres": 122, "geom": { "type": "Polygon", "coordinates": [ [ [ -95.3087953780673, 41.0053322216551 ], [ -95.308796150418, 41.0050026146697 ], [ -95.3101693714372, 41.0072554216855 ], [ -95.3111178430629, 41.0080371386425 ], [ -95.3131366473632, 41.0074704225998 ], [ -95.313023202439, 41.0063859821854 ], [ -95.3169942502881, 41.0037895686414 ], [ -95.3170995674367, 41.0037694992111 ], [ -95.3182692356051, 41.0035465766435 ], [ -95.3202294748478, 41.0030381111938 ], [ -95.3207703316818, 41.0029097457278 ], [ -95.3209077380462, 41.0029527343013 ], [ -95.320943132372, 41.0031007300369 ], [ -95.3205635075154, 41.0043812014773 ], [ -95.3201865807124, 41.0052581671016 ], [ -95.3196352343025, 41.0058984216156 ], [ -95.3189092141254, 41.0067252245747 ], [ -95.318957095085, 41.0071787546086 ], [ -95.3192116646215, 41.0084090472027 ], [ -95.3195757388396, 41.0093168477022 ], [ -95.3184833274893, 41.009601937103 ], [ -95.3154059018127, 41.0105560799756 ], [ -95.3123029766238, 41.0116479223581 ], [ -95.3111359566834, 41.0123920140664 ], [ -95.3109564595414, 41.0124413713422 ], [ -95.310864313032, 41.0123974631883 ], [ -95.3096999028839, 41.0084628638043 ], [ -95.3091244591751, 41.0062551964794 ], [ -95.3089976706111, 41.0056514629906 ], [ -95.3089452154226, 41.0054466096678 ], [ -95.3087953780673, 41.0053322216551 ] ] ] } } ], "products": [ { "name": "2,4-D Amine 4#", "code": "24d", "rate": 1.5, "blend_group": "2" } ], "comments": [ { "content": "This is a comment" } ] } Returns ******* Returns the :ref:`attributes ` for the new job. Sample HTTP Request ******************* :: POST http://localdev.agrismartis.com:3000/api/jobs?kid=79b607dc2d7ada8856e6&date=20170404165045Z&key=6a4e9a0636916e96bd1d9b979efa741e742c452bb070cfdea19ce1ce694270bf HTTP/1.1 Content-Type: application/json Host: localdev.agrismartis.com:3000 Content-Length: 6883 Expect: 100-continue Connection: Keep-Alive { "number": 630907, "status": 400, "spray_date": "2015/10/28", "partnership": { "id": 1465, "applicator": { "id": 238, "business_name": "Central Valley Ag - TRAINING SITE.", "address": "2803 N Nebraska Ave", "city": "York", "state": "NE", "zip": "68467", "phone": "(402) 362-0253", "contact_first_name": "Andy", "contact_last_name": "Bowman", "min_release_window": null }, "retailer": { "id": 1490, "name": "CVA - York", "address": "1403 Rd. 14 ", "city": "York", "state": "NE", "zip": "68467", "phone": "", "contact_first_name": "", "contact_last_name": "" } }, "center": { "lat": 41.010346808166, "lng": -97.8791732258746 }, "legal_state": "NE", "legal_county": "Hamilton", "township": "7", "legal": "15-12N-5W", "total_acres": 311.0, "grower": { "id": 71603, "grower_id": "335" }, "job_type": { "id": 2, "description": "Ground Application" }, "job_category": { "id": 152, "description": "Dry App- Any Machine" }, "purpose": { "id": 4, "description": "Fertility" }, "pest": "", "gpa": 10.0, "release_now": true, "release_start": "2015/10/28", "release_end": "2015/11/01", "display_date": "2016/01/07", "pilot_id": 3583, "crop": { "id": 1, "name": "Corn" }, "sprayed_completely": true, "processed": null, "fields": [ { "name": "Dose West ", "actual_acres": 160.0, "geom": { "type": "Polygon", "coordinates": [ [ [ -97.8743631821245, 41.0103408601739 ], [ -97.8743628446107, 41.0103061941782 ], [ -97.8814527196304, 41.0103043897703 ], [ -97.8823736427493, 41.0103247547745 ], [ -97.8839442735319, 41.010320967643 ], [ -97.883964103697, 41.011589681592 ], [ -97.8839822713277, 41.0136763485882 ], [ -97.8812099412936, 41.0136603518486 ], [ -97.8812087801069, 41.0137289813528 ], [ -97.8839828560374, 41.0137445806682 ], [ -97.8839851176834, 41.0140037620607 ], [ -97.8840154991068, 41.017493294969 ], [ -97.8839237290744, 41.0175610470562 ], [ -97.8806479454913, 41.0175439431499 ], [ -97.8805859396853, 41.0175436201603 ], [ -97.8792737698039, 41.0175367409697 ], [ -97.8792407215423, 41.0175365637231 ], [ -97.8743928133925, 41.0175110183086 ], [ -97.8744104407127, 41.0138648903534 ], [ -97.8743637305766, 41.0103980661901 ], [ -97.8743631821245, 41.0103408601739 ] ] ] } }, { "name": "Dose West", "actual_acres": 151.0, "geom": { "type": "Polygon", "coordinates": [ [ [ -97.8743806565177, 41.003149372176 ], [ -97.877068414007, 41.0031641494272 ], [ -97.8790393651784, 41.0031490145401 ], [ -97.8790143911604, 41.0042199477753 ], [ -97.8783716473583, 41.0042141631523 ], [ -97.8784352515265, 41.005952594067 ], [ -97.8806028658711, 41.0059819630518 ], [ -97.8806413960969, 41.0043523507482 ], [ -97.8803020037528, 41.004349054151 ], [ -97.8802764753107, 41.0057397746937 ], [ -97.8794244551949, 41.0057340974828 ], [ -97.8794465861993, 41.0047513429958 ], [ -97.8791509086404, 41.0047526206779 ], [ -97.8791349882337, 41.0042325607706 ], [ -97.8791599604617, 41.00316161848 ], [ -97.883237762607, 41.0031325692759 ], [ -97.8838128091352, 41.0031379954382 ], [ -97.8839442735319, 41.010320967643 ], [ -97.8823736427493, 41.0103247547745 ], [ -97.8823643535993, 41.0099814605939 ], [ -97.8814581367855, 41.0099841095194 ], [ -97.8814527196304, 41.0103043897703 ], [ -97.8743628446107, 41.0103061941782 ], [ -97.8743309526424, 41.0070000169146 ], [ -97.8743339976474, 41.0067687036304 ], [ -97.8743806565177, 41.003149372176 ] ] ] } } ], "products": [ { "name": "AMS 21-0-0-24s (500819)", "code": "500819", "rate": 75.0 }, { "name": "MAP 11-52-0 (500806)", "code": "500806", "rate": 150.0 }, { "name": "Potash 0-0-60 (500809)", "code": "500809", "rate": 60.0 }, { "name": "Zinc 35% (500821)", "code": "500821", "rate": 8.0 } ] } Sample HTTP Response ******************** :: HTTP/1.1 200 OK Content-Type: application/json; charset=utf-8 Content-Length: 4613 Connection: keep-alive Status: 200 OK Cache-Control: private, max-age=0, must-revalidate X-Runtime: 2153 ETag: "c2923a99ca873ce17c472db08c2674f8" Date: Fri, 09 Dec 2016 07:04:41 GMT X-Powered-By: Phusion Passenger 5.0.30 Server: nginx/1.10.1 + Phusion Passenger 5.0.30 { "number": 790218, "status": 0, "spray_date": "2016/08/01", "partnership": { "id": 382, "applicator": { "id": 12, "business_name": "AgriSmart Aerial", "address": "PO Box 542", "city": "Red Oak", "state": "IA", "zip": "51566", "phone": "(800) 890-6945", "contact_first_name": "Larry", "contact_last_name": "Barmann", "min_release_window": 1 }, "retailer": { "id": 458, "name": "AgriSmart - Glenwood", "address": "PO Box 542", "city": "Red Oak", "state": "IA", "zip": "51566", "phone": "800 890-6945", "contact_first_name": "Larry", "contact_last_name": "Barmann" } }, "center": { "lat": 41.007675558535, "lng": -95.31486925521965 }, "legal_state": null, "legal_county": null, "township": null, "legal": null, "total_acres": 122.0, "grower": { "id": 20071, "grower_id": "Fink" }, "job_type": { "id": 1, "description": "Aerial Application" }, "job_category": { "id": 314, "description": "Liq - Burndown" }, "purpose": { "id": 1, "description": "Disease" }, "pest": "", "gpa": 2.0, "release_now": true, "release_start": "2016/08/01", "release_end": "2016/12/31", "display_date": "2016/08/01", "pilot_id": null, "crop": { "id": 143, "name": "-Unknown-" }, "sprayed_completely": false, "processed": null, "fields": [ { "name": "", "actual_acres": 122.0, "geom": { "type": "Polygon", "coordinates": [ [ [ -95.3087953780673, 41.0053322216551 ], [ -95.308796150418, 41.0050026146697 ], [ -95.3101693714372, 41.0072554216855 ], [ -95.3111178430629, 41.0080371386425 ], [ -95.3131366473632, 41.0074704225998 ], [ -95.313023202439, 41.0063859821854 ], [ -95.3169942502881, 41.0037895686414 ], [ -95.3170995674367, 41.0037694992111 ], [ -95.3182692356051, 41.0035465766435 ], [ -95.3202294748478, 41.0030381111938 ], [ -95.3207703316818, 41.0029097457278 ], [ -95.3209077380462, 41.0029527343013 ], [ -95.320943132372, 41.0031007300369 ], [ -95.3205635075154, 41.0043812014773 ], [ -95.3201865807124, 41.0052581671016 ], [ -95.3196352343025, 41.0058984216156 ], [ -95.3189092141254, 41.0067252245747 ], [ -95.318957095085, 41.0071787546086 ], [ -95.3192116646215, 41.0084090472027 ], [ -95.3195757388396, 41.0093168477022 ], [ -95.3184833274893, 41.009601937103 ], [ -95.3154059018127, 41.0105560799756 ], [ -95.3123029766238, 41.0116479223581 ], [ -95.3111359566834, 41.0123920140664 ], [ -95.3109564595414, 41.0124413713422 ], [ -95.310864313032, 41.0123974631883 ], [ -95.3096999028839, 41.0084628638043 ], [ -95.3091244591751, 41.0062551964794 ], [ -95.3089976706111, 41.0056514629906 ], [ -95.3089452154226, 41.0054466096678 ], [ -95.3087953780673, 41.0053322216551 ] ] ] } } ], "products": [ { "name": "2,4-D Amine 4#", "code": "24d", "rate": 1.5 } ] }