Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GET reponse for GCS and RCS configurations #2

Open
bo-lu opened this issue Nov 23, 2023 · 1 comment
Open

GET reponse for GCS and RCS configurations #2

bo-lu opened this issue Nov 23, 2023 · 1 comment
Assignees

Comments

@bo-lu
Copy link
Member

bo-lu commented Nov 23, 2023

Get RCS using requests and GCS from dynamodb table.

Sample response:

{
  "uuid": "0c25772d-da22-4ac1-b130-c1d97b935f6f",
  "message": {
    "gcs": "Success returning GCS",
    "rcs": "Success returning RCS"
  },
  "reponse": {
    "rcs": [
      {
        "layers": [
          {
            "isTimeAware": false,
            "layerType": "esriDynamic",
            "service_url": "https://maps-cartes.services.geo.ca/server_serveur/rest/services/CNSC/RRD_NuclearProcessingFacilities_Discharge_en/MapServer",
            "name": "Radionuclide Releases - Direct Discharge of Nuclear Processing Facilities",
            "id": "rcs.0c25772d-da22-4ac1-b130-c1d97b935f6f.en",
            "url": "https://maps-cartes.services.geo.ca/server_serveur/rest/services/CNSC/RRD_NuclearProcessingFacilities_Discharge_en/MapServer",
            "layerEntries": [
              {
                "index": 0
              }
            ]
          }
        ]
      }
    ],
    "gcs": {
      "en": {
        "chart": {
          "enable": true,
          "labelsPie": {
            "type": "config",
            "values": "",
            "split": ";"
          },
          "layers": [
            {
              "type": "link",
              "details": {
                "enabled": false
              },
              "id": "0c25772d-da22-4ac1-b130-c1d97b935f6f",
              "nameField": "facility_substance",
              "linkUrl": "https://maps-cartes.services.geo.ca/server_serveur/rest/services/CNSC/RRD_NuclearProcessingFacilities_Discharge_en/MapServer/1",
              "linkField": "facility_substance",
              "data": [
                {
                  "type": "combine",
                  "linkType": "multi",
                  "label": {
                    "type": "field",
                    "values": "substance_name",
                    "split": ";"
                  },
                  "regex": "\\(|\\),\\(|\\)",
                  "split": ",",
                  "prefix": "",
                  "suffix": "",
                  "link": "facility_substance",
                  "date": "year",
                  "measure": "direct_discharge",
                  "values": "substance_name"
                }
              ]
            }
          ],
          "type": "line",
          "title": "Radionuclide Releases - Direct Discharge of Nuclear Processing Facilities",
          "axis": {
            "xAxis": {
              "type": "date",
              "title": "Year",
              "values": "",
              "split": ";"
            },
            "yAxis": {
              "type": "linear",
              "title": "Annual release",
              "precision": 2,
              "values": "",
              "split": ";"
            }
          },
          "options": {
            "colors": "#FF4500",
            "cutOut": 0
          }
        }
      },
      "fr": {
        "chart": {
          "enable": true,
          "labelsPie": {
            "type": "config",
            "values": "",
            "split": ";"
          },
          "layers": [
            {
              "type": "link",
              "details": {
                "enabled": false
              },
              "id": "0c25772d-da22-4ac1-b130-c1d97b935f6f",
              "nameField": "installation_substance",
              "linkUrl": "https://maps-cartes.services.geo.ca/server_serveur/rest/services/CNSC/RRD_NuclearProcessingFacilities_Discharge_fr/MapServer/1",
              "linkField": "installation_substance",
              "data": [
                {
                  "type": "combine",
                  "linkType": "multi",
                  "label": {
                    "type": "field",
                    "values": "nom_substance",
                    "split": ";"
                  },
                  "regex": "\\(|\\),\\(|\\)",
                  "split": ",",
                  "prefix": "",
                  "suffix": "",
                  "link": "installation_substance",
                  "date": "annee",
                  "measure": "evacuations_directes",
                  "values": "nom_substance"
                }
              ]
            }
          ],
          "type": "line",
          "title": "Rejets de radionucléides - Évacuations directes des installations de traitement nucléaire",
          "axis": {
            "xAxis": {
              "type": "date",
              "title": "Année",
              "values": "",
              "split": ";"
            },
            "yAxis": {
              "type": "linear",
              "title": "Rejets annuels",
              "precision": 2,
              "values": "",
              "split": ";"
            }
          },
          "options": {
            "colors": "#FF4500",
            "cutOut": 0
          }
        }
      }
    }
  }
}
@bo-lu bo-lu self-assigned this Nov 23, 2023
@bo-lu
Copy link
Member Author

bo-lu commented Nov 23, 2023

Add option to append the geocore metadata

@bo-lu bo-lu changed the title GET reponse for RCS and RCS configurations GET reponse for GCS and RCS configurations Dec 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant