Google Firestore Geopoint

Hi everyone,

I’d love to get your support with a workflow using Google Firestore. My workflow is feeding data from airtable to firestore, creating new documents. Everything works as it should but I am facing an issue with firestore geopoint datatype which isn’t a basic datatype. Firestore stores my latitude/longitude either as a string or as a map, whatever format I try. I m setting all data variables in a function item node. Reading the firestore documentation, I would need the sdk to set the data type to GeoPoint. Is it possible to use an external sdk in n8n cloud or do you know by chance how to transform the datatype correctly for Firestore?

Thanks in advance for your help.

Hey @NickKazal,

Welcome to the community :sparkling_heart:

Using external SDKs is currently not supported on the cloud. Can you share the code you’re using and the link to the documentation for Firestore? I’ll try to find a solution, and get back to you :slight_smile:

Hey @harshil1712,

thanks for the quick reply! :slightly_smiling_face:

This is the firestore api reference: Method: projects.databases.documents.createDocument  |  Firebase

And this is my code:

Hey @NickKazal,

I took a look at the Firestore documentation, and the data-type they’re using for GeoPoint is double. Did you try converting the data to double?

If that doesn’t work out, maybe try looking for an API that you can use? I’ll continue to look into it, and get back to you if I find something more helpful :slight_smile: