Skip to content

Instantly share code, notes, and snippets.

@projectxcappe
Created March 21, 2018 17:20
Show Gist options
  • Save projectxcappe/4fd65e6c64d1d087d6640cf9c0654d19 to your computer and use it in GitHub Desktop.
Save projectxcappe/4fd65e6c64d1d087d6640cf9c0654d19 to your computer and use it in GitHub Desktop.
struct PlacesData: Codable {
let data: [Place]
// let msg: String
// let status: Int
// let statuscode: Int
}
struct Place: Codable, Equatable {
static func ==(lhs: Place, rhs: Place) -> Bool {
return
lhs.longitude == rhs.longitude &&
lhs.latitude == rhs.latitude &&
lhs.id == rhs.id &&
lhs.name == rhs.name
}
let longitude: String
let latitude: String
let id: String
let name: String
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment