How to add or save from web form (Javascript) entry as GeoPoint type in Firebase Firestore
问题 Hi i have a web form which collect the following: -cafe name -latitude -longitude of its location. Currently, the lat and long is saved as map format instead of GeoPoint in Firestore. Hence i would like to seek your advice on how it could be saved as GeoPoint format/data type. form.addEventListener('submit',(e)=>{ e.preventDefault(); db.collection('sgcafe').add ({ name: form.name.value, category: form.category.value, coordinates: {Latitude:form.lat.value,Longtitude:form.long.value} //save as