...
Send a POST
request to https://beta-api.ambita.com/kode/v1/prices/[cadastre|share|map]
Example request
Code Block | ||
---|---|---|
| ||
curl -s \ -H "Content-Type: application/json" \ -H "Authorization: Bearer ej577asf-a5k6-42yq-a3a2-fh03hb8cb58c" \ https://beta-api.ambita.com/kode/v1/prices/cadastremap -d " { \"orderData\": { \"addressgeometry\": { \"Infoveien 1, 9999 Infoland\" \"type\": \"Polygon\", \"coordinates\": [[ [679906.435383017,7741056.419552005], [679906.4572162632,7742527.458934937], [681832.6049002217,7742527.507026337], \"cadastre [681832.6139410603,7741056.365899973], [679906.435383017,7741056.419552005] ]] }, \"spatialReference\": \"9999-1-1-0-025833\" }, \"products\": [ { \"code\": \"WI99990033\"\"WI54016101\", \"data\": { \"format\": \"UTM\" } } ] }" |
JSON body structure
Property | Description |
---|---|
| Order data required to calculate the price of products with variable price depending on input order data which will differ based on the type of product being ordered between cadastre, share, map products, see section below |
| Array of objects, see section below |
...
Property | Description |
---|---|
For getting prices on cadastre products, see example below |
|
| Important to use this format |
| Cadastre should always include all required parts |
For getting prices on share products, see example below |
|
| Organization number |
| The id of the owner's right of occupation in the cooperative |
For getting prices on map products, see example below |
|
| A closed GeoJSON polygon specified in ETRS89 / UTM zone 33N or ETRS89 / UTM zone 32N |
| Spatial reference the |
Example cadastre products orderData
Code Block | ||
---|---|---|
| ||
"orderData": {
"address": "Infoveien 1, 9999 Infoland",
"cadastre": "9999-1-1-0-0"
} |
Example share products orderData
...
language | json |
---|
...
Example map products orderData
...
Code Block | ||
---|---|---|
| ||
"products": [ { "code": "WI54016101", "data": { "formatsystem": "UTM" } } ] |
Example response
...