in the database UI I can create a field with the type geopoint. After providing values, it looks something like this:
geopoint
location: [1° N, 1° E]
The Firestore SDKs include a GeoPoint class, so you would have to save locations like this:
{ location: new firebase.firestore.GeoPoint(latitude, longitude) }