Skip to content

Commit

Permalink
Merge pull request #57 from norydev/use-organic-maps
Browse files Browse the repository at this point in the history
Reword site & doc to use organic maps instead of maps.me
  • Loading branch information
norydev authored Dec 18, 2023
2 parents f20c1b5 + 44e0437 commit dba52e8
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 2 additions & 2 deletions app.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions views/home.erb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
</head>
<body>
<div class="home bg">
<h1>Get <a href="https://hitchwiki.org/maps/">Hitchwiki</a> spots into <a href="https://maps.me">MAPS.me</a></h1>
<h1>Get <a href="https://hitchwiki.org/maps/">Hitchwiki</a> spots into <a href="https://organicmaps.app/">Organic Maps</a> (or <a href="https://maps.me">MAPS.me</a>)</h1>
<div class="form-wrapper">

<ul id="kind-tabs" class="nav nav-tabs nav-justified">
Expand All @@ -34,7 +34,7 @@
<span class="glyphicon glyphicon-plus-sign" aria-hidden="true"></span>
</button>

<button type="submit" class="btn btn-success block" title="Send this file to your phone and import it into MAPS.me">Generate MAPS.me Bookmarks</button>
<button type="submit" class="btn btn-success block" title="Send this file to your phone and import it into Organic Maps">Generate Bookmarks File</button>
</form>
</div>

Expand All @@ -48,7 +48,7 @@
<% end %>
</select>
</div>
<button type="submit" class="btn btn-success btn-submit" title="Send this file to your phone and import it into MAPS.me">Generate MAPS.me Bookmarks</button>
<button type="submit" class="btn btn-success btn-submit" title="Send this file to your phone and import it into Organic Maps">Generate Bookmarks File</button>
</form>
</div>
</div>
Expand Down

0 comments on commit dba52e8

Please sign in to comment.