...
Code Block | ||
---|---|---|
| ||
InfolandAmbita.MflexmFlex.init({ environment: 'test', token: tokenObject, reference: '123456789', technicalReference: '123456789', externalDepartmentId: 1234, }); |
...
Code Block | ||
---|---|---|
| ||
Ambita.mFlex.productList.load('query-selector', { cadastre: { knr: '0301', gnr: '1', bnr: '1', fnr: '0', snr: '0' }, share: { organizationNumber: '123456789', shareNumber: '123' }, address: { key: '1234567-123123-123456-12-A' } }); |
Cadastre
Name | Description |
---|---|
| Municipality number (Kommunenummer) |
| Cadastre Unit number (Gårdsnummer) |
| Unit number (Bruksnummer) |
| Leasehold Unit number (Festenummer) |
| Section number (Seksjonsnummer) |
...
Code Block |
---|
Ambita.mFlex.search.load('query-selector'); |
Ambita.mFlex.search.onSearchResult
Set this property to a function, this will be triggered whenever the user finish the search
Code Block |
---|
window.Ambita.mFlex.search.onSearchResult = (result) => { console.log(result); }; |
Output:
Code Block |
---|
{
"itemKeys": {
"cadastre": "123-1-1-0-0",
"address": "123-12345-12-A"
},
"productsQuery": "cadastre=123-1-1-0-0&address=123-12345-12-A",
"cadastre": {
"title": "0123/1/1/0/0",
"id": "123-1-1-0-0",
"ident": {
"municipalityNumber": 123,
"cadastralUnitNumber": 1,
"unitNumber": 1,
"leaseholdUnitNumber": 0,
"sectionNumber": 0,
"leasehold": false,
"section": true
},
"cadastre": {
"knr": 123,
"gnr": 1,
"bnr": 1,
"fnr": 0,
"snr": 0
},
"subtitle": "Gateadresse 1A",
"geojson": {
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [
263267.79,
6651901.69
]
},
"properties": {
"id": "123-1-1-0-0",
"title": "123/1/1/0/0",
"icon": "cube",
"type": "group"
},
"crs": {
"type": "name",
"properties": {
"name": "urn:ogc:def:crs:EPSG::25833"
}
}
},
"addressesLink": "https://beta-api.ambita.com/realty/v1/cadastres/123-1-1-0-0/addresses/",
"ownersLink": "https://beta-api.ambita.com/realty/v1/cadastres/123-1-1-0-0/owners/",
"links": {
"self": {
"rel": "Cadastre",
"href": "https://beta-api.ambita.com/realty/v1/cadastres/123-1-1-0-0"
},
"cadastre": {
"rel": "Cadastre",
"href": "https://beta-api.ambita.com/realty/v1/cadastres/123-1-1-0-0"
},
"owners": {
"rel": "Person",
"href": "https://beta-api.ambita.com/realty/v1/cadastres/123-1-1-0-0/owners/"
},
"addresses": {
"rel": "Address",
"href": "https://beta-api.ambita.com/realty/v1/cadastres/123-1-1-0-0/addresses/"
}
},
"isRegisteredLand": true,
"isHistoricalRegisteredLand": false,
"isTechnicalRegisteredLand": true,
"isHistoricalTechnicalRegisteredLand": false
}
} |