Skip to content

geolocation.json example

Damian Dominella edited this page Apr 5, 2018 · 1 revision
[{
	"type": "geosearch",
	"key": "geosearch",
	"label": "Cerca indirizzo"
}, {
	"key": "address",
	"type": "text",
	"label": "Indirizzo",
	"class": "col-sm-6",
	"calculatedValue": "geosearch.address",
	"validators": {
		"required": true
	}
}, {
	"key": "postcode",
	"type": "text",
	"label": "CAP",
	"class": "col-sm-6",
	"calculatedValue": "geosearch.postcode",
	"validators": {
		"required": false
	}
}, {
	"key": "city",
	"type": "text",
	"label": "Città",
	"class": "col-sm-6",
	"calculatedValue": "geosearch.city",
	"validators": {
		"required": true
	}
}, {
	"key": "nation",
	"type": "text",
	"label": "Nazione",
	"class": "col-sm-6",
	"calculatedValue": "geosearch.country",
	"validators": {
		"required": true
	}
}, {
	"type": "map",
	"lat": {
		"key": "lat",
		"type": "number",
		"label": "Latitudine",
		"calculatedValue": "geosearch.lat",
		"validators": {
			"required": false
		}
	},
	"lng": {
		"key": "lng",
		"type": "number",
		"label": "Longitudine",
		"calculatedValue": "geosearch.lng",
		"validators": {
			"required": false
		}
	}
}]

Please note the calculatedValue option.

Clone this wiki locally