title: swift 4 firebase GeoPoint decode
body: <p>I was wondering if it is possible to encode and decode a GeoPoint from the firebase's JSON response using standard swift 4?</p>
  
  <p>It looks like as of now that the GeoPoint is not Codable?</p>
  
  <p>I get the following error </p>
  
  <pre><code>No 'decode' candidates produce the expected contextual result type 'GeoPoint'
  </code></pre>
  
  <p>in my Codable class </p>
  
  <pre><code>final class Data: Codable
  {
    var location:GeoPoint = GeoPoint(latitude:0,longitude:0)
  
    private enum CodingKeys: String, CodingKey
    {
      case geoloc
    }
  
    init(from decoder: Decoder) throws
    {
      let values = try decoder.container(keyedBy: CodingKeys.self)
  
      do
      {
        located = try values.decode(Location.self, forKey: .geoloc) //error here
      }
      catch
      {
        print("data has location in server response\n")
      }
  
    }
  
    func encode(to encoder: Encoder) throws
    {
      var container = encoder.container(keyedBy: CodingKeys.self)
      try container.encode(location, forKey: .geoloc)
  
    }
  }
  </code></pre>