thanhlmm / refi-app

A tool to make interacting with Firestore less painful
https://refiapp.io
MIT License
606 stars 47 forks source link

Geopoint Not Correct On Firebase Firestore! #106

Open TheNorthBusiness opened 1 year ago

TheNorthBusiness commented 1 year ago

Hi,

I have been facing an error on the Firebase Firestore when I create a geolocation field like this -> "geo": "GeoPoint16.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?

hunterwilhelm commented 1 year ago

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.

VladSt90 commented 1 year ago

@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