Created
March 21, 2018 17:20
-
-
Save projectxcappe/4fd65e6c64d1d087d6640cf9c0654d19 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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