ExploreFeatures service

The ExploreFeatures service provides detailed information about a queried entity. Currently, the service provides data exclusively from the open cadastral datasets published by the Latvian State Land Service.

Service URL

The service link must follow the following structure:

https://api.kartes.lv/v3//feature?

The response responds with data in GeoJSON format.

The HTTP method is GET.

Request parameters

The following GET parameters are supported:

Parameter Explanation Available values
layer Specifies the data layer to query.
  • cadastral (required) — returns data for cadastral land parcels, buildings, and premises
code Cadastral code of a parcel, building or premise group. The object type is determined by the length of the code: 11 digits - land parcel, 14 digits - building, 17 digits - premise group. Required if address_code is not provided. Example: 01000920024
address_code Address code (official address identifier). Required if code is not provided. Example: 105747812
cs Specifies the coordinate system of the returned geometry.
  • wgs84 - data is returned in WGS84 (EPSG:4326) coordinate system (default value).
  • lks - data is returned in TM Baltic93 (EPSG:25884) coordinate system.

Note: Exactly one of the parameters code or address_code must be provided.

Additional data

For land parcels and buildings, an additional array field named related_cadastres is included in the response.

  • For land parcels, the array contains cadastral codes of related buildings.
  • For buildings, the array contains cadastral codes of related premise groups.

URL example for land parcel or building code

https://api.kartes.lv/v3//feature?layer=cadastral&code=01000920024

Response parameters for land parcel or building code

Parameter Description
code Cadastral code of the object
varis_code VARIS code (the official address identifier)
status_kind_name Object status (e.g., "real estate")
land_purpose_list Land use purposes data
    LandPurposeData Array of land use purposes
        LandPurposeArea Area in square meters for this land use purpose
        LandPurposeKind Land use purpose details
            LandPurposeKindId Land use purpose code
            LandPurposeKindName Land use purpose name
        LandPurposeExplicationData Detailed land use breakdown
            OtherLand Other land area in square meters
            AgricultDetails Agricultural land details (if applicable)
            UnderWaterDetails Underwater area details (if applicable)
survey_list Survey data
    SurveyData Survey information
        SurveyDate Survey date (format: YYYY-MM-DD)
        SurveyKind Type of survey performed
planned_parcel_list Planned parcel data (if applicable)
related_cadastres Array of related cadastral codes (buildings for land parcels, premise groups for buildings)

Response example for land parcel or building code

{
  "type": "FeatureCollection",
  "crs": {
    "type": "name",
    "properties": {
      "name": "urn:ogc:def:crs:EPSG::4326"
    }
  },
  "features": [
    {
      "type": "Feature",
      "geometry": {
        "type": "MultiPolygon",
        "coordinates": [
          [
            [
              [24.222751, 56.98698],
              [24.222885, 56.986995],
              [24.222869, 56.987036],
              [24.222902, 56.98704],
              [24.223412, 56.9871],
              [24.223422, 56.987072],
              [24.223425, 56.987066],
              [24.223489, 56.986899],
              [24.223337, 56.98688],
              [24.222814, 56.986817],
              [24.222751, 56.98698]
            ]
          ]
        ]
      },
      "properties": {
        "code": "01000920024",
        "varis_code": "101129127",
        "status_kind_name": "real estate",
        "land_purpose_list": {
          "LandPurposeData": [
            {
              "LandPurposeArea": "684",
              "LandPurposeKind": {
                "LandPurposeKindId": "0701",
                "LandPurposeKindName": "Construction of one- and two-storey apartment buildings"
              },
              "LandPurposeExplicationData": {
                "OtherLand": "684",
                "AgricultDetails": null,
                "UnderWaterDetails": null
              }
            },
            {
              "LandPurposeArea": "246",
              "LandPurposeKind": {
                "LandPurposeKindId": "0801",
                "LandPurposeKindName": "Construction of commercial facilities"
              },
              "LandPurposeExplicationData": {
                "OtherLand": "246",
                "AgricultDetails": null,
                "UnderWaterDetails": null
              }
            }
          ]
        },
        "survey_list": {
          "SurveyData": {
            "SurveyDate": "2004-06-15",
            "SurveyKind": "instrumental surveying, involving the state geodetic network"
          }
        },
        "planned_parcel_list": null,
        "related_cadastres": [
          "01000920024002",
          "01000920024001",
          "01000920024003",
          "01000920024004"
        ]
      }
    }
  ]
}

URL example for premise group

https://api.kartes.lv/v3//feature?layer=cadastral&code=98940060069001004

Response parameters for premise group

Parameter Description
code Cadastral code
varis_code VARIS code (the official address identifier)
premise_group_name Premise group name
apartment_nr Apartment number
premise_group_use_kind Premise group use type
premise_floor Binding floor
premise_count Number of premises in premise group
premise_group_area Total area of premise group (m²)
premise_group_survey_date Cadastral survey date of premise group
premise_group_acception_years Year(s) of commissioning of premise group
premise_group_not_for_land_book Data not usable for registration in land book

Response example for premise group

{
  "type": "FeatureCollection",
  "crs": {
    "type": "name",
    "properties": {
      "name": "urn:ogc:def:crs:EPSG::4326"
    }
  },
  "features": [
    {
      "type": "Feature",
      "geometry": {
        "type": "Point",
        "coordinates": [21.890117, 57.098623]
      },
      "properties": {
        "code": "98940060069001004",
        "varis_code": "117669718",
        "premise_group_name": "Apartment",
        "apartment_nr": "3",
        "premise_group_use_kind": "Residential premise group of a house with three or more apartments",
        "premise_floor": "1",
        "premise_count": "5",
        "premise_group_area": "51.90",
        "premise_group_survey_date": "1999-09-28",
        "premise_group_acception_years": null,
        "premise_group_not_for_land_book": null
      }
    }
  ]
}

URL example with address code

https://api.kartes.lv/v3//feature?layer=cadastral&address_code=105747812

Response parameters with address code

Parameter Description
code Cadastral code of the object
varis_code VARIS code (the official address identifier)
status_kind_name Object status
land_purpose_list Land use purposes data
    LandPurposeData Land use purpose information
        LandPurposeArea Area in square meters for this land use purpose
        LandPurposeKind Land use purpose details
            LandPurposeKindId Land use purpose code
            LandPurposeKindName Land use purpose name
        LandPurposeExplicationData Detailed land use breakdown
            Bushes Bushes area in square meters
            Forest Forest area in square meters
            OtherLand Other land area in square meters
            UnderRoads Land under roads in square meters
            AgricultTotal Total agricultural land in square meters
            AgricultDetails Agricultural land details
                Pastures Pastures in square meters
            UnderWaterDetails Underwater area details
survey_list Survey data
    SurveyData Survey information
        SurveyDate Survey date (format: YYYY-MM-DD)
        SurveyKind Type of survey performed
planned_parcel_list Planned parcel data (if applicable)

Response example with address code

{
  "type": "FeatureCollection",
  "crs": {
    "type": "name",
    "properties": {
      "name": "urn:ogc:def:crs:EPSG::4326"
    }
  },
  "features": [
    {
      "type": "Feature",
      "geometry": {
        "type": "MultiPolygon",
        "coordinates": [
          [
            [
              [26.231559, 56.95896],
              [26.233099, 56.958543],
              [26.235196, 56.959124],
              [26.23718, 56.959393],
              [26.238948, 56.958371],
              [26.239274, 56.958435],
              [26.239704, 56.957272],
              [26.240852, 56.956067],
              [26.24092, 56.955944],
              [26.240021, 56.955342],
              [26.239772, 56.955353],
              [26.239575, 56.955353],
              [26.239229, 56.955337],
              [26.238919, 56.955312],
              [26.238586, 56.955273],
              [26.238309, 56.955231],
              [26.237922, 56.955166],
              [26.237573, 56.95511],
              [26.237259, 56.955056],
              [26.236997, 56.954973],
              [26.23692, 56.954952],
              [26.236882, 56.954971],
              [26.236738, 56.955044],
              [26.23664, 56.955097],
              [26.236584, 56.955174],
              [26.236563, 56.955247],
              [26.236568, 56.955336],
              [26.23657, 56.955445],
              [26.236563, 56.955582],
              [26.236508, 56.955689],
              [26.236413, 56.95581],
              [26.236197, 56.955912],
              [26.236045, 56.955985],
              [26.235957, 56.955988],
              [26.234467, 56.956026],
              [26.232751, 56.957748],
              [26.231559, 56.95896]
            ]
          ]
        ]
      },
      "properties": {
        "code": "70270120017",
        "varis_code": "105747812",
        "status_kind_name": "legal possession of real estate",
        "land_purpose_list": {
          "LandPurposeData": {
            "LandPurposeArea": "155100",
            "LandPurposeKind": {
              "LandPurposeKindId": "0101",
              "LandPurposeKindName": "Land where the main economic activity is agriculture"
            },
            "LandPurposeExplicationData": {
              "Bushes": "11500",
              "Forest": "72600",
              "OtherLand": "700",
              "UnderRoads": "1100",
              "AgricultTotal": "69200",
              "AgricultDetails": {
                "Pastures": "69200"
              },
              "UnderWaterDetails": null
            }
          }
        },
        "survey_list": {
          "SurveyData": {
            "SurveyDate": "2009-02-20",
            "SurveyKind": "instrumental surveying, involving the state geodetic network"
          }
        },
        "planned_parcel_list": null
      }
    }
  ]
}