Adress fields

Adresses are always following the same schema in zoolo. If you need to get data or update data from an address field this is the schema.

// Some database model
{
	_id: 123456,
	address: // this is your own unique address key
			{
				street: String,
				streetNumber: String,
				city: String,
				country: String,
				zip: String,
				loc: {
					type: "Point",
					coordinates: [Number, Number] // Longitude , Lattitude
			}
	... // more fields
}

This address object is fixed for every zoolo object. When creating or copying addresse please follow this schema.

Last updated