summaryrefslogtreecommitdiffhomepage
path: root/ios/MullvadVPN/Location.swift
blob: 1d10f4c86ef8db6bf839a60e9a50bbcf8d0de0c1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
//
//  Location.swift
//  MullvadVPN
//
//  Created by pronebird on 12/02/2020.
//  Copyright © 2020 Mullvad VPN AB. All rights reserved.
//

import Foundation
import struct CoreLocation.CLLocationCoordinate2D

struct Location: Codable, Equatable {
    var country: String
    var countryCode: String
    var city: String
    var cityCode: String
    var latitude: Double
    var longitude: Double

    var geoCoordinate: CLLocationCoordinate2D {
        return CLLocationCoordinate2D(latitude: latitude, longitude: longitude)
    }
}