diff --git a/src/main.rs b/src/main.rs index 42c89c2..f97f1a8 100644 --- a/src/main.rs +++ b/src/main.rs @@ -133,7 +133,7 @@ async fn upload( let location = if let (Some(la), Some(lo)) = (lat, lon) { geocode::reverse_geocode(la, lo) .await - .unwrap_or_default() + .unwrap_or_else(|_| format!("{:.5}, {:.5}", la, lo)) } else { String::new() }; diff --git a/templates/index.html b/templates/index.html index f7aba83..3b9629f 100644 --- a/templates/index.html +++ b/templates/index.html @@ -156,7 +156,10 @@