How to implement
First you want to head over to the section to figure out how to log your users into Infoland.
After you have figured that out, you need to setup a user synchronisation that is described here: .
If your frontend is using NPM, go to NPM to learn how to setup the components in your frontend or you can use our CDN here: CDN. You will also find more information about using the components here Usage
The last thing you need to do is to handle file deliveries, this is described here: File deliveries
Ambita.Infoland.init
This is used for configuration of the components
Example
Ambita.Infoland.init({ element: '#app', category: 'realtestate', token: tokenObject, reference: '123456789', technicalReference: '123456789', externalDepartmentId: 1234, onOrderConfirmed: (orderId) => { console.log(orderId) } });
Name | Required | Type | Options | Description |
---|---|---|---|---|
| True | string | This property is used for setting the id of the html element you want the components to load. | |
| True | string |
| Determine what type of products that will be available in the product list. If your application have different types of users, you might want to make this dynamic based on the logged in user (brokers and architects might want different products). |
| True | object / string | This is where you pass in the token for the logged in user, see Infoland Flex - Authentication for more information. Could be the entire token object or only the access token. | |
| True | string | The reference property is added to the order when placed. This must be something that connects the order to the entity in your application that the user can relate to and have an understanding of. Could be an ID or key unique to an assignment or a project. The reference will show up on the invoices from Ambita | |
| False | string | The technical reference is added to the order and can be used by your application, in case you want to track the orders. We recommend using this when handling file deliveries, see Infoland Flex - File deliveries . | |
| False | number | Used in spesial cases only | |
| False | function | This function must be used to save the order id in your application, you need this to handle file deliveries later, see Infoland Flex - File deliveries . |
Ambita.Infoland.load
This function will do the actual loading of the components and takes inn a json object as a search query.
You should try to fill out as much as possible of these fields, depending on what type of property you want to buy. You should always try to fill out as much as possible and the components will figure out what property you are looking for based on the query.
Example
Ambita.Infoland.load({ cadastre: { knr: '0301', gnr: '1', bnr: '1', fnr: '0', snr: '0' }, share: { organizationNumber: '123456789', shareNumber: '123' }, address: { street: 'Storgata', houseNumber: '1', houseLetter: 'A', postalPlace: '1234', postalCode: 'OSLO' }, owner: { socialSecurityNumber: '12345678910', organizationNumber: '123456789', name: 'Ola Kari Nordmann' } });
Cadastre
Name | Description |
---|---|
| Municipality number (Kommunenummer) |
| Cadastre Unit number (Gårdsnummer) |
| Unit number (Bruksnummer) |
| Leasehold Unit number (Festenummer) |
| Section number (Seksjonsnummer) |
Share
Name | Description |
---|---|
| Organization number of the cooperative |
| The number of the “right of occupation” (andelsnummer) |
Owner
Name | Description |
---|---|
socialSecurityNumber | The official number of the person owning the property |
| The organization number of the company owning the property |
| The name of the person owning the property |
Address
Name | Description |
---|---|
| The street name |
| The street number |
| The house letter |
| The postal place |
| The postal code |