This commit is contained in:
2025-02-02 12:17:33 +03:00
parent 0ad1d27327
commit e4f883d35a
6 changed files with 72 additions and 8 deletions

View File

@@ -9,9 +9,13 @@ println('Location database initialized')
// Initialize the database (downloads and imports data)
// This only needs to be done once or when updating data
println('Downloading and importing location data (this may take a few minutes)...')
loc.download_and_import() or { panic(err) }
//the arg is if we redownload
loc.download_and_import(false) or { panic(err) }
println('Data import complete')
// // Example 1: Search for a city
// println('\nSearching for London...')
// results := loc.search('London', 'GB', 5, true) or { panic(err) }