refi-app icon indicating copy to clipboard operation
refi-app copied to clipboard

Geopoint Not Correct On Firebase Firestore!

Open TheNorthBusiness opened this issue 2 years ago • 2 comments

Hi,

I have been facing an error on the Firebase Firestore when I create a geolocation field like this -> "geo": "__GeoPoint__16.777375731514333###96.16025518316613" on Refi App. On the Firebase Firestore get this field to string type and not geopoint!

Screenshot 2023-08-19 at 5 59 44 PM

Can you show me the way how do I do it?

TheNorthBusiness avatar Aug 19 '23 11:08 TheNorthBusiness

I was not able to reproduce the bug. It worked fine for me. I pasted what you have into my editor, and it came out as a GeoPoint like this.

Screenshot 2023-08-30 at 6 11 17 PM

If I paste "__GeoPoint__16.777375731514333###96.16025518316613" into firestore directly, it shows a string. And if I adjust that string in Refi App, it goes back to Geopoint. No problems here.

hunterwilhelm avatar Aug 31 '23 00:08 hunterwilhelm

@hunterwilhelm @TheNorthBusiness The problem appears when I'm trying to import data with geo from JSON. Then in Firestore it appears to be a string image

VladSt90 avatar Sep 02 '23 14:09 VladSt90