|
33 | 33 | }, |
34 | 34 | "source": [ |
35 | 35 | "**Search templates are defined using the following JSON structure:**\n", |
36 | | - "\n", |
37 | 36 | "- **description** (string): Description of the template.\n", |
38 | 37 | "- **parameters** (object): Parameters of the template. These parameters can be used as placeholders in the request_body of the template and as named parameters of the search() method of the template. Each parameter has a name, a description, and an optional default value.\n", |
39 | 38 | "- **request_body** (object): Body of the request sent to the Search REST API. This request body can include template parameters surrounded by '#{' and '}' (for example: “#{my_param}”). More details on the structure of the request body can be found in the [Search API reference guide](https://apidocs.refinitiv.com/Apps/ApiDocs#/details/L2Rpc2NvdmVyeS9zZWFyY2gvdjE=/Lw==/POST/README) (access to this guide requires a Refinitiv Workspace account or RDP account to log in).\n", |
|
143 | 142 | { |
144 | 143 | "data": { |
145 | 144 | "text/plain": [ |
146 | | - "<refinitiv.data.session.Definition object at 0x7fe6f05ac880 {name='workspace'}>" |
| 145 | + "<refinitiv.data.session.Definition object at 0x7f87a8caa970 {name='workspace'}>" |
147 | 146 | ] |
148 | 147 | }, |
149 | 148 | "execution_count": 2, |
|
174 | 173 | { |
175 | 174 | "data": { |
176 | 175 | "text/plain": [ |
177 | | - "<ConfigurationSet: 0x7fe6ecb22a30>" |
| 176 | + "<ConfigurationSet: 0x7f87a5d56e50>" |
178 | 177 | ] |
179 | 178 | }, |
180 | 179 | "execution_count": 3, |
|
274 | 273 | { |
275 | 274 | "data": { |
276 | 275 | "application/vnd.jupyter.widget-view+json": { |
277 | | - "model_id": "76547c81a18a4f4ebe2e98964df6d18b", |
| 276 | + "model_id": "297ab3390e2f49648555f378d1a9ca0f", |
278 | 277 | "version_major": 2, |
279 | 278 | "version_minor": 0 |
280 | 279 | }, |
|
532 | 531 | { |
533 | 532 | "data": { |
534 | 533 | "application/vnd.jupyter.widget-view+json": { |
535 | | - "model_id": "c5ceda5aace84dcca989eb416934f973", |
| 534 | + "model_id": "91c7802cac2745c98db72b2761dd0744", |
536 | 535 | "version_major": 2, |
537 | 536 | "version_minor": 0 |
538 | 537 | }, |
539 | 538 | "text/plain": [ |
540 | | - "Map(center=[49.580833435059, -0.27009832859], controls=(ZoomControl(options=['position', 'zoom_in_text', 'zoom…" |
| 539 | + "Map(center=[50.856094360352, -1.350985050201], controls=(ZoomControl(options=['position', 'zoom_in_text', 'zoo…" |
541 | 540 | ] |
542 | 541 | }, |
543 | 542 | "metadata": {}, |
|
576 | 575 | " <tbody>\n", |
577 | 576 | " <tr>\n", |
578 | 577 | " <th>0</th>\n", |
579 | | - " <td>C}KV7309502197</td>\n", |
580 | | - " <td>OLYMPIC LEOPARD</td>\n", |
581 | | - " <td>VLCC</td>\n", |
582 | | - " <td>49.580833</td>\n", |
583 | | - " <td>-0.270098</td>\n", |
584 | | - " <td>At Anchor</td>\n", |
585 | | - " <td>170611.0</td>\n", |
| 578 | + " <td>C}CC7309865841</td>\n", |
| 579 | + " <td>ONE TRIBUTE</td>\n", |
| 580 | + " <td>Container</td>\n", |
| 581 | + " <td>50.856094</td>\n", |
| 582 | + " <td>-1.350985</td>\n", |
| 583 | + " <td>Underway Using Engine</td>\n", |
| 584 | + " <td>210678.0</td>\n", |
586 | 585 | " </tr>\n", |
587 | 586 | " <tr>\n", |
588 | 587 | " <th>1</th>\n", |
589 | | - " <td>C}KV7309957461</td>\n", |
590 | | - " <td>EAGLE VALLERY</td>\n", |
| 588 | + " <td>C}KV7309502197</td>\n", |
| 589 | + " <td>OLYMPIC LEOPARD</td>\n", |
591 | 590 | " <td>VLCC</td>\n", |
592 | | - " <td>49.75919</td>\n", |
593 | | - " <td>-0.227743</td>\n", |
| 591 | + " <td>49.578957</td>\n", |
| 592 | + " <td>-0.277272</td>\n", |
594 | 593 | " <td>At Anchor</td>\n", |
595 | | - " <td>158244.0</td>\n", |
| 594 | + " <td>170611.0</td>\n", |
596 | 595 | " </tr>\n", |
597 | 596 | " <tr>\n", |
598 | 597 | " <th>2</th>\n", |
599 | 598 | " <td>C}CC7309501973</td>\n", |
600 | 599 | " <td>MSC LAURENCE</td>\n", |
601 | 600 | " <td>Container</td>\n", |
602 | | - " <td>49.244526</td>\n", |
603 | | - " <td>-4.344807</td>\n", |
604 | | - " <td>Underway Using Engine</td>\n", |
| 601 | + " <td>49.613842</td>\n", |
| 602 | + " <td>-0.908613</td>\n", |
| 603 | + " <td>At Anchor</td>\n", |
605 | 604 | " <td>140096.0</td>\n", |
606 | 605 | " </tr>\n", |
607 | 606 | " <tr>\n", |
608 | 607 | " <th>3</th>\n", |
609 | | - " <td>C}CC7309695199</td>\n", |
610 | | - " <td>MSC ELODIE</td>\n", |
611 | | - " <td>Container</td>\n", |
612 | | - " <td>49.765675</td>\n", |
613 | | - " <td>-4.072597</td>\n", |
| 608 | + " <td>C}NF7309500622</td>\n", |
| 609 | + " <td>CELEBRITY SILHOUETTE</td>\n", |
| 610 | + " <td>Cruise Liner</td>\n", |
| 611 | + " <td>47.846512</td>\n", |
| 612 | + " <td>-6.347404</td>\n", |
614 | 613 | " <td>Underway Using Engine</td>\n", |
615 | | - " <td>95403.0</td>\n", |
| 614 | + " <td>122210.0</td>\n", |
616 | 615 | " </tr>\n", |
617 | 616 | " <tr>\n", |
618 | 617 | " <th>4</th>\n", |
619 | | - " <td>C}CC7309500560</td>\n", |
620 | | - " <td>NORTHERN JUBILEE</td>\n", |
| 618 | + " <td>C}CC7309488076</td>\n", |
| 619 | + " <td>MSC ROMA</td>\n", |
621 | 620 | " <td>Container</td>\n", |
622 | | - " <td>49.601742</td>\n", |
623 | | - " <td>-0.276777</td>\n", |
624 | | - " <td>At Anchor</td>\n", |
625 | | - " <td>94419.0</td>\n", |
| 621 | + " <td>51.652664</td>\n", |
| 622 | + " <td>1.399067</td>\n", |
| 623 | + " <td>Constrained By Her Draught</td>\n", |
| 624 | + " <td>107849.0</td>\n", |
626 | 625 | " </tr>\n", |
627 | 626 | " <tr>\n", |
628 | 627 | " <th>...</th>\n", |
|
635 | 634 | " <td>...</td>\n", |
636 | 635 | " </tr>\n", |
637 | 636 | " <tr>\n", |
638 | | - " <th>64</th>\n", |
| 637 | + " <th>68</th>\n", |
639 | 638 | " <td>C}VX7309985382</td>\n", |
640 | 639 | " <td>FV PARTI DE RIEN</td>\n", |
641 | 640 | " <td>Other Miscellaneous</td>\n", |
642 | | - " <td>50.724537</td>\n", |
643 | | - " <td>1.585865</td>\n", |
| 641 | + " <td>50.727257</td>\n", |
| 642 | + " <td>1.588677</td>\n", |
644 | 643 | " <td>Underway Using Engine</td>\n", |
645 | 644 | " <td><NA></td>\n", |
646 | 645 | " </tr>\n", |
647 | 646 | " <tr>\n", |
648 | | - " <th>65</th>\n", |
| 647 | + " <th>69</th>\n", |
649 | 648 | " <td>C}BT7309985659</td>\n", |
650 | 649 | " <td>ROUEN BEN0</td>\n", |
651 | 650 | " <td>Other Dry</td>\n", |
|
655 | 654 | " <td><NA></td>\n", |
656 | 655 | " </tr>\n", |
657 | 656 | " <tr>\n", |
658 | | - " <th>66</th>\n", |
| 657 | + " <th>70</th>\n", |
659 | 658 | " <td>C}VX7309986488</td>\n", |
660 | 659 | " <td>FV LOCEAN</td>\n", |
661 | 660 | " <td>Other Miscellaneous</td>\n", |
|
665 | 664 | " <td><NA></td>\n", |
666 | 665 | " </tr>\n", |
667 | 666 | " <tr>\n", |
668 | | - " <th>67</th>\n", |
| 667 | + " <th>71</th>\n", |
669 | 668 | " <td>C}VX7310029866</td>\n", |
670 | 669 | " <td>MA VICTOIRE</td>\n", |
671 | 670 | " <td>Other Miscellaneous</td>\n", |
672 | | - " <td>50.643097</td>\n", |
673 | | - " <td>1.29945</td>\n", |
| 671 | + " <td>50.454124</td>\n", |
| 672 | + " <td>1.181872</td>\n", |
674 | 673 | " <td>Engaged In Fishing</td>\n", |
675 | 674 | " <td><NA></td>\n", |
676 | 675 | " </tr>\n", |
677 | 676 | " <tr>\n", |
678 | | - " <th>68</th>\n", |
| 677 | + " <th>72</th>\n", |
679 | 678 | " <td>C}VX7310029871</td>\n", |
680 | 679 | " <td>FV MALOU</td>\n", |
681 | 680 | " <td>Other Miscellaneous</td>\n", |
682 | | - " <td>49.364449</td>\n", |
683 | | - " <td>0.08031</td>\n", |
| 681 | + " <td>49.364437</td>\n", |
| 682 | + " <td>0.080305</td>\n", |
684 | 683 | " <td>Underway Using Engine</td>\n", |
685 | 684 | " <td><NA></td>\n", |
686 | 685 | " </tr>\n", |
687 | 686 | " </tbody>\n", |
688 | 687 | "</table>\n", |
689 | | - "<p>69 rows × 7 columns</p>\n", |
| 688 | + "<p>73 rows × 7 columns</p>\n", |
690 | 689 | "</div>" |
691 | 690 | ], |
692 | 691 | "text/plain": [ |
693 | | - " RIC DTSubjectName DTSimpleType Latitude \\\n", |
694 | | - "0 C}KV7309502197 OLYMPIC LEOPARD VLCC 49.580833 \n", |
695 | | - "1 C}KV7309957461 EAGLE VALLERY VLCC 49.75919 \n", |
696 | | - "2 C}CC7309501973 MSC LAURENCE Container 49.244526 \n", |
697 | | - "3 C}CC7309695199 MSC ELODIE Container 49.765675 \n", |
698 | | - "4 C}CC7309500560 NORTHERN JUBILEE Container 49.601742 \n", |
699 | | - ".. ... ... ... ... \n", |
700 | | - "64 C}VX7309985382 FV PARTI DE RIEN Other Miscellaneous 50.724537 \n", |
701 | | - "65 C}BT7309985659 ROUEN BEN0 Other Dry 49.48555 \n", |
702 | | - "66 C}VX7309986488 FV LOCEAN Other Miscellaneous 50.400105 \n", |
703 | | - "67 C}VX7310029866 MA VICTOIRE Other Miscellaneous 50.643097 \n", |
704 | | - "68 C}VX7310029871 FV MALOU Other Miscellaneous 49.364449 \n", |
| 692 | + " RIC DTSubjectName DTSimpleType Latitude \\\n", |
| 693 | + "0 C}CC7309865841 ONE TRIBUTE Container 50.856094 \n", |
| 694 | + "1 C}KV7309502197 OLYMPIC LEOPARD VLCC 49.578957 \n", |
| 695 | + "2 C}CC7309501973 MSC LAURENCE Container 49.613842 \n", |
| 696 | + "3 C}NF7309500622 CELEBRITY SILHOUETTE Cruise Liner 47.846512 \n", |
| 697 | + "4 C}CC7309488076 MSC ROMA Container 51.652664 \n", |
| 698 | + ".. ... ... ... ... \n", |
| 699 | + "68 C}VX7309985382 FV PARTI DE RIEN Other Miscellaneous 50.727257 \n", |
| 700 | + "69 C}BT7309985659 ROUEN BEN0 Other Dry 49.48555 \n", |
| 701 | + "70 C}VX7309986488 FV LOCEAN Other Miscellaneous 50.400105 \n", |
| 702 | + "71 C}VX7310029866 MA VICTOIRE Other Miscellaneous 50.454124 \n", |
| 703 | + "72 C}VX7310029871 FV MALOU Other Miscellaneous 49.364437 \n", |
705 | 704 | "\n", |
706 | | - " Longitude AISStatus GrossTonnage \n", |
707 | | - "0 -0.270098 At Anchor 170611.0 \n", |
708 | | - "1 -0.227743 At Anchor 158244.0 \n", |
709 | | - "2 -4.344807 Underway Using Engine 140096.0 \n", |
710 | | - "3 -4.072597 Underway Using Engine 95403.0 \n", |
711 | | - "4 -0.276777 At Anchor 94419.0 \n", |
712 | | - ".. ... ... ... \n", |
713 | | - "64 1.585865 Underway Using Engine <NA> \n", |
714 | | - "65 0.114852 Underway Using Engine <NA> \n", |
715 | | - "66 0.308875 Engaged In Fishing <NA> \n", |
716 | | - "67 1.29945 Engaged In Fishing <NA> \n", |
717 | | - "68 0.08031 Underway Using Engine <NA> \n", |
| 705 | + " Longitude AISStatus GrossTonnage \n", |
| 706 | + "0 -1.350985 Underway Using Engine 210678.0 \n", |
| 707 | + "1 -0.277272 At Anchor 170611.0 \n", |
| 708 | + "2 -0.908613 At Anchor 140096.0 \n", |
| 709 | + "3 -6.347404 Underway Using Engine 122210.0 \n", |
| 710 | + "4 1.399067 Constrained By Her Draught 107849.0 \n", |
| 711 | + ".. ... ... ... \n", |
| 712 | + "68 1.588677 Underway Using Engine <NA> \n", |
| 713 | + "69 0.114852 Underway Using Engine <NA> \n", |
| 714 | + "70 0.308875 Engaged In Fishing <NA> \n", |
| 715 | + "71 1.181872 Engaged In Fishing <NA> \n", |
| 716 | + "72 0.080305 Underway Using Engine <NA> \n", |
718 | 717 | "\n", |
719 | | - "[69 rows x 7 columns]" |
| 718 | + "[73 rows x 7 columns]" |
720 | 719 | ] |
721 | 720 | }, |
722 | 721 | "metadata": {}, |
|
0 commit comments