-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use json instead of sqlite files for default data and update NY state…
… default location to NYC
- Loading branch information
Showing
12 changed files
with
144 additions
and
60 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Binary file not shown.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
// | ||
// SavedLocation++.swift | ||
// Solstice | ||
// | ||
// Created by Daniel Eden on 04/07/2024. | ||
// | ||
|
||
import Foundation | ||
|
||
extension SavedLocation { | ||
struct CodableRepresentation: Codable, AnyLocation { | ||
var title: String? | ||
var subtitle: String? | ||
var latitude: Double | ||
var longitude: Double | ||
var timeZoneIdentifier: String? | ||
var uuid: UUID? | ||
} | ||
|
||
var codableRepresentation: CodableRepresentation { | ||
CodableRepresentation(title: title, | ||
subtitle: subtitle, | ||
latitude: latitude, | ||
longitude: longitude, | ||
timeZoneIdentifier: timeZoneIdentifier, | ||
uuid: uuid) | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
[ | ||
{ | ||
"timeZoneIdentifier": "America/New_York", | ||
"uuid": "7AAA4D87-4402-4D0E-A35E-2D84641A71BE", | ||
"title": "New York, NY", | ||
"latitude": 40.7128, | ||
"longitude": -74.006, | ||
"subtitle": "United States" | ||
}, | ||
{ | ||
"timeZoneIdentifier": "America/Belem", | ||
"uuid": "150CF691-6B75-4FE7-9C03-CCBCC93EDAB3", | ||
"latitude": 0.037423, | ||
"subtitle": "Brazil", | ||
"longitude": -51.0724482, | ||
"title": "Macapá" | ||
}, | ||
{ | ||
"latitude": 64.124287, | ||
"subtitle": "Reykjavík, Iceland", | ||
"longitude": -21.8904589, | ||
"timeZoneIdentifier": "Atlantic/Reykjavik", | ||
"uuid": "1CBF4557-86CE-484C-9670-6BAC5D95D1A4", | ||
"title": "Reykjavík" | ||
}, | ||
{ | ||
"uuid": "AAD807D9-A571-4ACD-BB49-9828ABA61AFF", | ||
"title": "London", | ||
"latitude": 51.5033466, | ||
"subtitle": "England", | ||
"longitude": -0.0793965, | ||
"timeZoneIdentifier": "Europe/London" | ||
}, | ||
{ | ||
"subtitle": "Madagascar", | ||
"longitude": 44.9999848, | ||
"title": "Toliara", | ||
"timeZoneIdentifier": "Indian/Antananarivo", | ||
"uuid": "0D4B6A0C-C884-4BBB-AF35-97A62210CBB2", | ||
"latitude": -22.6345606 | ||
}, | ||
{ | ||
"longitude": 172.6352929, | ||
"latitude": -43.533128, | ||
"timeZoneIdentifier": "Pacific/Auckland", | ||
"title": "Christchurch", | ||
"subtitle": "New Zealand", | ||
"uuid": "3689532A-B4F8-4BCE-8F29-747C60CE37C2" | ||
} | ||
] |
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
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
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
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
Oops, something went wrong.