How store type LatLng in MongoDB for Google Map markers

Resolved

Hi,

I follow this tutorial: https://docs.flutterflow.io/widgets-and-components/widgets/base-elements/googlemap

And it worked with Firestore Documents, now i try to load data from custom API and show multiple markers.

How to save location type <Lat Lng> in MongoDB?

Because i tried this format

location: {
 lat: { type: Number, required: true},
lng: { type: Number, required: true}
 }

But it doesn't works, i also tried array [lat, lng],

And I can't confirm the list.

How to save and load multiple marker from MongoDB instead of Firestorm?

Thanks & Regard

1
8 replies