[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/osm 6e9f9909b7 5/6: README: Document distance measureme
From: |
ELPA Syncer |
Subject: |
[elpa] externals/osm 6e9f9909b7 5/6: README: Document distance measurement |
Date: |
Thu, 21 Dec 2023 18:58:17 -0500 (EST) |
branch: externals/osm
commit 6e9f9909b754f2df7c9f80f6651b497f2be1bfac
Author: Daniel Mendler <mail@daniel-mendler.de>
Commit: Daniel Mendler <mail@daniel-mendler.de>
README: Document distance measurement
---
README.org | 8 ++++++++
osm.el | 4 ++--
2 files changed, 10 insertions(+), 2 deletions(-)
diff --git a/README.org b/README.org
index 0a7f638547..332ab36f71 100644
--- a/README.org
+++ b/README.org
@@ -115,6 +115,14 @@ Elisp s-expressions they can be easily manipulated
programatically.
(osm "Tour Eiffel, Av. Gustave Eiffel, Paris") ;; Address link
#+end_src
+* Distance measurement
+
+Osm provides a simple distance measurement utility. In order to measure a
+distance, place or select a pin by clicking with the left mouse button. Then
+create one or more additional way points by pressing shift and clicking the
left
+mouse button. The length of the track will be shown in the echo area. You can
+select the way points of the track and delete them with ~d~ or ~DEL~.
+
* Commands and Key Bindings
Top-level commands in =osm-prefix-map=. These bindings are available globally
if
diff --git a/osm.el b/osm.el
index dff3388619..c300d6cbfd 100644
--- a/osm.el
+++ b/osm.el
@@ -701,8 +701,8 @@ Should be at least 7 days according to the server usage
policies."
(cl-incf len1 (osm--haversine (caar p) (cdar p)
(caadr p) (cdadr p)))
(pop p))
- (message "Track length %.2fkm%s"
- (+ len1 len2)
+ (message "%s way points, length %.2fkm%s"
+ (length osm--track) (+ len1 len2)
(if (or (= len1 0) (= len2 0))
""
(format ", (1) → %.2fkm → (%s) → %.2fkm → (%s)"
- [elpa] externals/osm updated (7af7a049bc -> f91272da50), ELPA Syncer, 2023/12/21
- [elpa] externals/osm 77acc8dd83 2/6: Update README, ELPA Syncer, 2023/12/21
- [elpa] externals/osm 6e9f9909b7 5/6: README: Document distance measurement,
ELPA Syncer <=
- [elpa] externals/osm f91272da50 6/6: osm-track-style: Thinner line, ELPA Syncer, 2023/12/21
- [elpa] externals/osm 6cf40b5d17 1/6: Add distance measurement, ELPA Syncer, 2023/12/21
- [elpa] externals/osm 8cb218725d 4/6: Various improvements, ELPA Syncer, 2023/12/21
- [elpa] externals/osm 7af8e74cda 3/6: Update README, ELPA Syncer, 2023/12/21