Hi everyone,
I’m working on a FlutterFlow app and need some help displaying location data on a Google Map widget. Here’s my setup:
I have two Firestore collections:
listings
andaddresses
.In the
listings
collection, each document includes anaddressRef
field, which is a reference to a document in theaddresses
collection.The
addresses
documents contain address details likestreetAddress
,city
,province
, and aLatLon
field (which stores latitude and longitude).
My goal is to:
Query the
listings
collection.For each listing, use the
addressRef
to access the referenced document in theaddresses
collection.Display the
LatLon
data (latitude and longitude) on a Google Map widget for each listing.
I’ve successfully queried the listings
collection, but I’m not sure how to properly reference the LatLon
field from the addresses
collection in FlutterFlow. Can someone guide me through the best way to query this referenced data and display it on a map?
Also note that I want to add multiple markers, each being pulled form Listing > AddressRef > LatLng
Thanks in advance