GetSotkaRegion

Returns the id for a region when param code is provided, and the region code with param id present.

Parameters

Name Type Description Required?
id String Region id false
code String Region code false

Response

Success

With param code

{
  "id": "<region id>"
}

With param id

{
  "code": "<region code>"
}

Examples

Example query for Paikkatietoikkuna

http://localhost:8080/web/fi/kartta?p_p_id=Portti2Map_WAR_portti2mapportlet&p_p_lifecycle=2&action_route=GetSotkaRegion&id=5

Last modified: Thu Nov 10 2022 13:59:32 GMT+0200 (Eastern European Standard Time)