Get feature by type and ID
GeoJsonFeature Elements.Retrieve(ElementRetrieveParamsparameters, CancellationTokencancellationToken = default)
GET/api/v1/features/{type}/{id}
Get feature by type and ID
ElementRetrieveParams parameters = new()
{
Type = "type",
ID = 0,
};
var geoJsonFeature = await client.Elements.Retrieve(parameters);
Console.WriteLine(geoJsonFeature);{
"geometry": {
"coordinates": [
2.3522,
48.8566
],
"type": "Point"
},
"properties": {
"@id": "bar",
"@type": "bar",
"amenity": "bar",
"cuisine": "bar",
"name": "bar"
},
"type": "Feature",
"id": "node/21154906"
}Returns Examples
{
"geometry": {
"coordinates": [
2.3522,
48.8566
],
"type": "Point"
},
"properties": {
"@id": "bar",
"@type": "bar",
"amenity": "bar",
"cuisine": "bar",
"name": "bar"
},
"type": "Feature",
"id": "node/21154906"
}