android - Save location data api in firebase -


i querying system without application, location data of devices updated @ times , sent firebase, searching api location has function, how can send captured data , send firebase ??? work sign ???

make 1 child node using device id , set latitude , longitude here, need make 1 model class

    class model{      public double lat;      public double lng;     }       mpdel m = new model();     m.lat = 23.14578;     m.lng = 72.45789;     mfirebasedatabase.child(userid).setvalue(m); 

for update value of latitude , longitude can write like,

mfirebasedatabase.child(userid).child("lat").setvalue(<new_value>); mfirebasedatabase.child(userid).child("lng").setvalue(<new_value>); 

here userid device id or other unique elements.


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -