ec-doris / kohesio-frontend

Web interface for Kohesio project
https://kohesio.ec.europa.eu
8 stars 0 forks source link

Outermost regions API #741

Open raphdom opened 1 year ago

raphdom commented 1 year ago

Now, I have this json hardcoded on my side, can you give me an API to get this from the KG? Can you add the total project number, by region, it will be great. Thanks

[{
        label: "Madeira",
        country: "Q18",
        countryLabel: "Portugal",
        id: "Q203"
    },{
        label: "Azores",
        country: "Q18",
        countryLabel: "Portugal",
        id: "Q204"
    },{
        label: "Canary Islands",
        country: "Q7",
        countryLabel: "Spain",
        id: "Q205"
    },{
        label: "Réunion",
        country: "Q20",
        countryLabel: "France",
        id: "Q206"
    },{
        label: "French Guiana",
        country: "Q20",
        countryLabel: "France",
        id: "Q201"
    },{
        label: "Guadeloupe Saint Martin",
        country: "Q20",
        countryLabel: "France",
        id: "Q2576740"
    },{
        label: "Martinique",
        country: "Q20",
        countryLabel: "France",
        id: "Q198"
    },{
        label: "Mayotte",
        country: "Q20",
        countryLabel: "France",
        id: "Q209"
    }]
D063520 commented 1 year ago

there is now this API:

/api/facet/eu/outermost_regions

that gives back nearly the same json object

You have to wait a second to be redeployed ....

raphdom commented 1 year ago

done, all the values from the outermost regions now come via API, @D063520 It is difficult to add the total Number of the project in all outermost regions? This allow us to colorize the regions on the heat map.

D063520 commented 1 year ago

uuuuu, this is a bit custom ..... I think we will not make it for this release ..... I would need to think how to do this conretely. We also do not have the numbers on the main map at the beginning ....

raphdom commented 1 year ago

no, it is only for the heat map, inside the projects page, but no worries, we can postponed it to next year. Thanks