JSNoob
JSNoob

Reputation: 1577

How to write to GeoFire from Python?

The GeoFire SDK only supports Java, Obj-C and JS. Let's say I want to save an item with its location data in python, how will the data structure look like. So far I have item['location'] = [float(lat), float(long)] It doesn't seem to work when I try to use GeoFire.js on the client side to fetch data.

Upvotes: 2

Views: 722

Answers (1)

Tom Joynt
Tom Joynt

Reputation: 93

It looks like GeoFire is essentially client logic (Java, Obj-C and JS) using geohashing backed by FireBase's Realtime Database (see "but really how" in their blog). Since there's no python client, it's not possible out of the box. You'd either need to find a python wrapper for their supported libraries, or do something using geohashing and Realtime Database directly.

Upvotes: 1

Related Questions