From 44e0437e68d2c62c5c69742e8ecc86e8f170a182 Mon Sep 17 00:00:00 2001 From: Fabien Loup Date: Mon, 18 Dec 2023 11:49:04 +0100 Subject: [PATCH] Reword site & doc to use organic maps instead of maps.me Maps.me is still mentioned as it is still working in there, but organic maps is a superior app (and the one I use daily). --- README.md | 5 ++++- app.rb | 4 ++-- views/home.erb | 6 +++--- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 81f1231..de94f73 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,10 @@ This is very practical but hitchhikers might not have access to the Internet while they are on the road, and therefore would not be able to quickly go check if there is a good spot close to their location. -Hitchspots is here to close the gap: before going on your trip, get a digest of all the spots along your route in KML format. This way, you can import this file in your favorite offline maps application, [Maps.me](https://maps.me), and have access to all the spots along your route without the need for an Internet connection. +Hitchspots is here to close the gap: before going on your trip, get a digest of all the spots along your route in KML format. This way, you can import this file in your favorite offline maps application, [Organic Maps](https://organicmaps.app/), and have access to all the spots along your route without the need for an Internet connection. + +PS: Also works with the [Maps.me](https://maps.me/) app +PPS: hitchwiki integration is broken, so newer spots are missing, they may come back some day. ## License and Data diff --git a/app.rb b/app.rb index 94bdd22..140fb78 100644 --- a/app.rb +++ b/app.rb @@ -60,12 +60,12 @@ lon: params[:to_lon]) ) - maps_me_kml = trip.spots(format: :kml) + kml_file = trip.spots(format: :kml) response.headers["Warning"] = "299 hitchspots.me/trip \"Deprecated\"" content_type "application/vnd.google-earth.kml+xml" attachment trip.file_name(format: :kml) - maps_me_kml + kml_file rescue Hitchspots::NotFound => e render_home(params.merge(error_msg: e.message)) end diff --git a/views/home.erb b/views/home.erb index f103353..dc32059 100644 --- a/views/home.erb +++ b/views/home.erb @@ -11,7 +11,7 @@
-

Get Hitchwiki spots into MAPS.me

+

Get Hitchwiki spots into Organic Maps (or MAPS.me)

@@ -48,7 +48,7 @@ <% end %>
- +