Guest User

Untitled

a guest
Jun 19th, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. void getAndPrintLocation() {
  2. geofire.getLocation("Mechelen", new LocationCallBack(
  3. (String key, List<double> location) {
  4. print("Successfully received location!");
  5. print(key + ": " + location.toString());
  6. },
  7. (DatabaseError error) {
  8. print("Error receiving location!");
  9. print(error.toString());
  10. }
  11. ));
  12. }
  13.  
  14. void createQuery(List<double> location, double radius) {
  15. this.query = geofire.queryAtLocation(location, radius);
  16. print(this.query.toString());
  17. }
  18.  
  19. I/flutter (18068): GeoQuery
  20. I/flutter (18068): --- Center: [51.0259, 4.4775]
  21. I/flutter (18068): --- Radius: 450.0
Add Comment
Please, Sign In to add comment