title: GeoFire with Swift
body: <p>I plan to use GeoFire to filter my firebase data based on location. Not sure how to get started with this because I just started developing. I have a pic and a caption etc that I create in one Class with:</p>
  
  <pre><code>    @IBAction func shareDidTap(_ sender: Any) {
              if let image = image, let caption = textView.text {
                  let newMedia = Media(type: "image", caption: caption, createdBy: user, image: image)
                      newMedia.save(completion: { (error) in
                          if let error = error {
                              self.alert(title: "Oops!", message: error.localizedDescription, buttonTitle: "OK")
                          } else {
                              self.user.share(newMedia: newMedia)
  </code></pre>
  
  <p>in a separate "User" class (MVC) I save it into Firebase with</p>
  
  <pre><code>    func share(newMedia: Media) {
              DatabaseReference.users(uid: uid).reference().child("media").childByAutoId().setValue(newMedia.uid)
          }
  </code></pre>
  
  <p>Where do I instantiate the GeoFire reference? Do I have to use Core Location to get my own Lat and Lon? Any help would be appreciated. Thank you.  </p>