# Suggestion: DistanceUnit.NAUTICALMILES is a worthy addition

**URL:** <https://discuss.elastic.co/t/suggestion-distanceunit-nauticalmiles-is-a-worthy-addition/15710>\
**Category:** Elasticsearch\
**Created:** [February 10, 2014, 11:21pm UTC](https://discuss.elastic.co/t/suggestion-distanceunit-nauticalmiles-is-a-worthy-addition/15710 "2014-02-10T23:21:28Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![brian\_yoder](https://avatars.discourse-cdn.com/v4/letter/b/f1d935/32.png) [@brian\_yoder](https://discuss.elastic.co/u/brian_yoder)\
**Post date:** [February 10, 2014, 11:21pm UTC](https://discuss.elastic.co/t/suggestion-distanceunit-nauticalmiles-is-a-worthy-addition/15710/1 "2014-02-10T23:21:28Z")

</div>

Would it be reasonable to create an issue to request nautical miles ("nm"  
as the abbreviation) for the DistanceUnit enumeration?

This would make it much more natural to adapt Elasticsearch for aircraft  
planning / charting applications. Everything in that world is in nautical  
miles and knots (nautical miles per hour).

Brian

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/8ca57a9f-a8e0-4865-aaf7-2eee224822a8%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/8ca57a9f-a8e0-4865-aaf7-2eee224822a8%40googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Ivan](https://avatars.discourse-cdn.com/v4/letter/i/df788c/32.png) [@Ivan](https://discuss.elastic.co/u/Ivan)\
**Post date:** [February 10, 2014, 11:27pm UTC](https://discuss.elastic.co/t/suggestion-distanceunit-nauticalmiles-is-a-worthy-addition/15710/2 "2014-02-10T23:27:51Z")

</div>

Aircraft use nautical miles? You learn something new every day!

--  
Ivan

On Mon, Feb 10, 2014 at 3:21 PM, InquiringMind [brian.from.fl@gmail.com](mailto:brian.from.fl@gmail.com)wrote:

> Would it be reasonable to create an issue to request nautical miles ("nm"  
> as the abbreviation) for the DistanceUnit enumeration?
> 
> This would make it much more natural to adapt Elasticsearch for aircraft  
> planning / charting applications. Everything in that world is in nautical  
> miles and knots (nautical miles per hour).
> 
> Brian
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/8ca57a9f-a8e0-4865-aaf7-2eee224822a8%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/8ca57a9f-a8e0-4865-aaf7-2eee224822a8%40googlegroups.com)  
> .  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CALY%3DcQCdNuCF4QN2hjW61oQKMODPZ3GGfywF2VATHSbPHjqyTw%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CALY%3DcQCdNuCF4QN2hjW61oQKMODPZ3GGfywF2VATHSbPHjqyTw%40mail.gmail.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Raffaele\_Sena](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/raffaele_sena/32/1759_2.png) [@Raffaele\_Sena](https://discuss.elastic.co/u/Raffaele_Sena)\
**Post date:** [February 10, 2014, 11:54pm UTC](https://discuss.elastic.co/t/suggestion-distanceunit-nauticalmiles-is-a-worthy-addition/15710/3 "2014-02-10T23:54:44Z")

</div>

One nautical mile is one minute of arc along the meridian line (one degree  
of longitude), that makes it very easy to calculate distance on a chart  
(independent on the vehicle used 🙂

> **[Nautical mile](https://en.wikipedia.org/wiki/Nautical_mile)**
>
> A nautical mile is a unit of length used in air, marine, and space navigation, and for the definition of territorial waters. Historically, it was defined as the meridian arc length corresponding to one minute (.mw-parser-output .sfrac{white-space:nowrap}.mw-parser-output .sfrac.tion,.mw-parser-output .sfrac .tion{display:inline-block;vertical-align:-0.5em;font-size:85%;text-align:center}.mw-parser-output .sfrac .num,.mw-parser-output .sfrac .den{display:block;line-height:1em;margin:0 0.1em} There...

On Mon, Feb 10, 2014 at 3:27 PM, Ivan Brusic [ivan@brusic.com](mailto:ivan@brusic.com) wrote:

> Aircraft use nautical miles? You learn something new every day!
> 
> --  
> Ivan
> 
> On Mon, Feb 10, 2014 at 3:21 PM, InquiringMind [brian.from.fl@gmail.com](mailto:brian.from.fl@gmail.com)wrote:
> 
> > Would it be reasonable to create an issue to request nautical miles ("nm"  
> > as the abbreviation) for the DistanceUnit enumeration?
> > 
> > This would make it much more natural to adapt Elasticsearch for aircraft  
> > planning / charting applications. Everything in that world is in nautical  
> > miles and knots (nautical miles per hour).
> > 
> > Brian
> > 
> > --  
> > You received this message because you are subscribed to the Google Groups  
> > "elasticsearch" group.  
> > To unsubscribe from this group and stop receiving emails from it, send an  
> > email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > To view this discussion on the web visit  
> > [https://groups.google.com/d/msgid/elasticsearch/8ca57a9f-a8e0-4865-aaf7-2eee224822a8%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/8ca57a9f-a8e0-4865-aaf7-2eee224822a8%40googlegroups.com)  
> > .  
> > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/CALY%3DcQCdNuCF4QN2hjW61oQKMODPZ3GGfywF2VATHSbPHjqyTw%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CALY%3DcQCdNuCF4QN2hjW61oQKMODPZ3GGfywF2VATHSbPHjqyTw%40mail.gmail.com)  
> .
> 
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CANKfucbO%2BgXXPLF52GnOeP5o5pq9kaRWQkSN%3DevHOJXe2kLFTA%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CANKfucbO%2BgXXPLF52GnOeP5o5pq9kaRWQkSN%3DevHOJXe2kLFTA%40mail.gmail.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [February 11, 2014, 1:25pm UTC](https://discuss.elastic.co/t/suggestion-distanceunit-nauticalmiles-is-a-worthy-addition/15710/4 "2014-02-11T13:25:03Z")

</div>

Hey,

never thought about such a use-case, but it sounds useful. Feel free to  
create an issue, and even better, a pull request to add that functionality  
to DistanceUnit

--Alex

On Tue, Feb 11, 2014 at 12:54 AM, Raffaele Sena [raff367@gmail.com](mailto:raff367@gmail.com) wrote:

> One nautical mile is one minute of arc along the meridian line (one degree  
> of longitude), that makes it very easy to calculate distance on a chart  
> (independent on the vehicle used 🙂
> 
> [Nautical mile - Wikipedia](http://en.wikipedia.org/wiki/Nautical_mile)
> 
> On Mon, Feb 10, 2014 at 3:27 PM, Ivan Brusic [ivan@brusic.com](mailto:ivan@brusic.com) wrote:
> 
> > Aircraft use nautical miles? You learn something new every day!
> > 
> > --  
> > Ivan
> > 
> > On Mon, Feb 10, 2014 at 3:21 PM, InquiringMind [brian.from.fl@gmail.com](mailto:brian.from.fl@gmail.com)wrote:
> > 
> > > Would it be reasonable to create an issue to request nautical miles  
> > > ("nm" as the abbreviation) for the DistanceUnit enumeration?
> > > 
> > > This would make it much more natural to adapt Elasticsearch for aircraft  
> > > planning / charting applications. Everything in that world is in nautical  
> > > miles and knots (nautical miles per hour).
> > > 
> > > Brian
> > > 
> > > --  
> > > You received this message because you are subscribed to the Google  
> > > Groups "elasticsearch" group.  
> > > To unsubscribe from this group and stop receiving emails from it, send  
> > > an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > > To view this discussion on the web visit  
> > > [https://groups.google.com/d/msgid/elasticsearch/8ca57a9f-a8e0-4865-aaf7-2eee224822a8%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/8ca57a9f-a8e0-4865-aaf7-2eee224822a8%40googlegroups.com)  
> > > .  
> > > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> > 
> > --  
> > You received this message because you are subscribed to the Google Groups  
> > "elasticsearch" group.  
> > To unsubscribe from this group and stop receiving emails from it, send an  
> > email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > To view this discussion on the web visit  
> > [https://groups.google.com/d/msgid/elasticsearch/CALY%3DcQCdNuCF4QN2hjW61oQKMODPZ3GGfywF2VATHSbPHjqyTw%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CALY%3DcQCdNuCF4QN2hjW61oQKMODPZ3GGfywF2VATHSbPHjqyTw%40mail.gmail.com)  
> > .
> > 
> > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/CANKfucbO%2BgXXPLF52GnOeP5o5pq9kaRWQkSN%3DevHOJXe2kLFTA%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CANKfucbO%2BgXXPLF52GnOeP5o5pq9kaRWQkSN%3DevHOJXe2kLFTA%40mail.gmail.com)  
> .
> 
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAGCwEM9VGm0QW2gsb2TSDxjZVoLSmdrAdD6SxX5PuvOVkSEUiQ%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAGCwEM9VGm0QW2gsb2TSDxjZVoLSmdrAdD6SxX5PuvOVkSEUiQ%40mail.gmail.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![brian\_yoder](https://avatars.discourse-cdn.com/v4/letter/b/f1d935/32.png) [@brian\_yoder](https://discuss.elastic.co/u/brian_yoder)\
**Post date:** [February 11, 2014, 3:48pm UTC](https://discuss.elastic.co/t/suggestion-distanceunit-nauticalmiles-is-a-worthy-addition/15710/5 "2014-02-11T15:48:11Z")

</div>

Alex,

I created issue [Enhance DistanceUnit to recognize nautical miles. · Issue #5085 · elastic/elasticsearch · GitHub](https://github.com/elasticsearch/elasticsearch/issues/5085)

I don't use GitHub that much, and I kinda muffed the issue, so I'll let  
someone else add the one enumeration to wherever it should best go:

NAUTICALMILES(1852.0, "nm", "nmi"),

Thanks!

Brian

Brian

On Tuesday, February 11, 2014 8:25:03 AM UTC-5, Alexander Reelsen wrote:

> Hey,
> 
> never thought about such a use-case, but it sounds useful. Feel free to  
> create an issue, and even better, a pull request to add that functionality  
> to DistanceUnit
> 
> --Alex
> 
> On Tue, Feb 11, 2014 at 12:54 AM, Raffaele Sena \<[raf...@gmail.com](mailto:raf...@gmail.com)\<javascript:\>
> 
> > wrote:
> 
> > One nautical mile is one minute of arc along the meridian line (one  
> > degree of longitude), that makes it very easy to calculate distance on a  
> > chart (independent on the vehicle used 🙂
> > 
> > [Nautical mile - Wikipedia](http://en.wikipedia.org/wiki/Nautical_mile)
> > 
> > On Mon, Feb 10, 2014 at 3:27 PM, Ivan Brusic \<[iv...@brusic.com](mailto:iv...@brusic.com)\<javascript:\>
> > 
> > > wrote:
> > 
> > > Aircraft use nautical miles? You learn something new every day!
> > > 
> > > --  
> > > Ivan
> > > 
> > > On Mon, Feb 10, 2014 at 3:21 PM, InquiringMind \<[brian....@gmail.com](mailto:brian....@gmail.com)\<javascript:\>
> > > 
> > > > wrote:
> > > 
> > > > Would it be reasonable to create an issue to request nautical miles  
> > > > ("nm" as the abbreviation) for the DistanceUnit enumeration?
> > > > 
> > > > This would make it much more natural to adapt Elasticsearch for  
> > > > aircraft planning / charting applications. Everything in that world is in  
> > > > nautical miles and knots (nautical miles per hour).
> > > > 
> > > > Brian
> > > > 
> > > > --  
> > > > You received this message because you are subscribed to the Google  
> > > > Groups "elasticsearch" group.  
> > > > To unsubscribe from this group and stop receiving emails from it, send  
> > > > an email to [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com) \<javascript:\>.  
> > > > To view this discussion on the web visit  
> > > > [https://groups.google.com/d/msgid/elasticsearch/8ca57a9f-a8e0-4865-aaf7-2eee224822a8%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/8ca57a9f-a8e0-4865-aaf7-2eee224822a8%40googlegroups.com)  
> > > > .  
> > > > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> > > 
> > > --  
> > > You received this message because you are subscribed to the Google  
> > > Groups "elasticsearch" group.  
> > > To unsubscribe from this group and stop receiving emails from it, send  
> > > an email to [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com) \<javascript:\>.  
> > > To view this discussion on the web visit  
> > > [https://groups.google.com/d/msgid/elasticsearch/CALY%3DcQCdNuCF4QN2hjW61oQKMODPZ3GGfywF2VATHSbPHjqyTw%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CALY%3DcQCdNuCF4QN2hjW61oQKMODPZ3GGfywF2VATHSbPHjqyTw%40mail.gmail.com)  
> > > .
> > > 
> > > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> > 
> > --  
> > You received this message because you are subscribed to the Google Groups  
> > "elasticsearch" group.  
> > To unsubscribe from this group and stop receiving emails from it, send an  
> > email to [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com) \<javascript:\>.  
> > To view this discussion on the web visit  
> > [https://groups.google.com/d/msgid/elasticsearch/CANKfucbO%2BgXXPLF52GnOeP5o5pq9kaRWQkSN%3DevHOJXe2kLFTA%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CANKfucbO%2BgXXPLF52GnOeP5o5pq9kaRWQkSN%3DevHOJXe2kLFTA%40mail.gmail.com)  
> > .
> > 
> > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/658b963d-f648-4066-adbd-eee4c80088de%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/658b963d-f648-4066-adbd-eee4c80088de%40googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![brian\_yoder](https://avatars.discourse-cdn.com/v4/letter/b/f1d935/32.png) [@brian\_yoder](https://discuss.elastic.co/u/brian_yoder)\
**Post date:** [February 11, 2014, 5:13pm UTC](https://discuss.elastic.co/t/suggestion-distanceunit-nauticalmiles-is-a-worthy-addition/15710/6 "2014-02-11T17:13:57Z")

</div>

Working on a pull request... I've created a fork off of master and cloned  
it to my laptop. (First time using git and GitHub in this way...)

Brian

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/01e6926f-70af-4aa7-a24e-ab329bb9b908%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/01e6926f-70af-4aa7-a24e-ab329bb9b908%40googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Ivan](https://avatars.discourse-cdn.com/v4/letter/i/df788c/32.png) [@Ivan](https://discuss.elastic.co/u/Ivan)\
**Post date:** [February 11, 2014, 5:17pm UTC](https://discuss.elastic.co/t/suggestion-distanceunit-nauticalmiles-is-a-worthy-addition/15710/7 "2014-02-11T17:17:14Z")

</div>

Create a branch for your changes. Submit a PR from the branch and not  
master. Make sure to update DistanceUnitTests.java as well. The trickiest  
part is getting the Elasticsearch team to notice your PR. 🙂 They must be  
super busy with the 1.0 release.

Lots of tutorials online:

> **[Github guide: How to pull, branch, squash and fork in Github - Gun.io](https://gun.io/news/2017/01/how-to-github-fork-branch-and-pull-request/)**
>
> Everything you need to know to pull down, branch off of, squash, and fork in GitHub in one handy little guide.

Cheers,

Ivan

On Tue, Feb 11, 2014 at 9:13 AM, InquiringMind [brian.from.fl@gmail.com](mailto:brian.from.fl@gmail.com)wrote:

> Working on a pull request... I've created a fork off of master and cloned  
> it to my laptop. (First time using git and GitHub in this way...)
> 
> Brian
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/01e6926f-70af-4aa7-a24e-ab329bb9b908%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/01e6926f-70af-4aa7-a24e-ab329bb9b908%40googlegroups.com)  
> .
> 
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CALY%3DcQC7apjv-7eKq8ugr1nGfxtGHAnvxAsDO\_j%3Dp7gWibscYQ%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CALY%3DcQC7apjv-7eKq8ugr1nGfxtGHAnvxAsDO_j%3Dp7gWibscYQ%40mail.gmail.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![brian\_yoder](https://avatars.discourse-cdn.com/v4/letter/b/f1d935/32.png) [@brian\_yoder](https://discuss.elastic.co/u/brian_yoder)\
**Post date:** [February 11, 2014, 9:17pm UTC](https://discuss.elastic.co/t/suggestion-distanceunit-nauticalmiles-is-a-worthy-addition/15710/8 "2014-02-11T21:17:11Z")

</div>

Ivan,

Thanks so much for the advice. I created the nm-branch (nautical miles  
branch) off of master, then cloned it to my laptop. Found the two files  
(DistanceUnit, and DistanceUnitTests). Made the (very simple) changes. Then  
built ES and ran only the tests in DistanceUnitTests. The build was  
surprisingly quick; the tests ran and succeeded:

$ mvn test -Dtests.class=org.elasticsearch.common.unit.DistanceUnitTests  
  
[INFO] Your default console's encoding may not display certain unicode  
glyphs: MacRoman  
Executing 1 suite with 1 JVM.

Started J0 PID(9572@).  
Suite: org.elasticsearch.common.unit.DistanceUnitTests  
Completed in 0.54s, 2 tests

## [INFO] JVM J0: 0.44 .. 1.56 = 1.12s [INFO] Execution time total: 1.57 sec. [INFO] Tests summary: 1 suite, 2 tests [INFO]

## [INFO] BUILD SUCCESS [INFO]

## [INFO] Total time: 8.507s [INFO] Finished at: Tue Feb 11 15:57:37 EST 2014 [INFO] Final Memory: 10M/123M [INFO]

Here is the pull request:

> <https://github.com/elastic/elasticsearch/pull/5088>

Please let me know if anything is amiss. This is my first actual use of  
GitHub. A local git expert offered his advice as well, but any errors are  
mine and no one else's.

Brian

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/1ed828ce-77e6-46cc-851b-90c0b27d05bb%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/1ed828ce-77e6-46cc-851b-90c0b27d05bb%40googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![brian\_yoder](https://avatars.discourse-cdn.com/v4/letter/b/f1d935/32.png) [@brian\_yoder](https://discuss.elastic.co/u/brian_yoder)\
**Post date:** [February 11, 2014, 9:46pm UTC](https://discuss.elastic.co/t/suggestion-distanceunit-nauticalmiles-is-a-worthy-addition/15710/9 "2014-02-11T21:46:46Z")

</div>

Raffaele,

Thanks! Also, note the range (that is, maximum distance traveled with  
appropriate fuel minimums) of the following aircraft. All are in nm(nautical miles):

[http://www.gulfstream.com/careers/our\_products.html](http://www.gulfstream.com/careers/our_products.html)

Cool stuff! (Now back to work!)

Brian

_On Monday, February 10, 2014 6:54:44 PM UTC-5, Raffaele Sena wrote:_

> _One nautical mile is one minute of arc along the meridian line (one  
> degree of longitude), that makes it very easy to calculate distance on a  
> chart (independent on the vehicle used 🙂_
> 
> _[Nautical mile - Wikipedia](http://en.wikipedia.org/wiki/Nautical_mile)_[http://en.wikipedia.org/wiki/Nautical\_mile](http://en.wikipedia.org/wiki/Nautical_mile)

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/9e4065fa-160f-4bd5-a4f3-b1ad85f17d2e%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/9e4065fa-160f-4bd5-a4f3-b1ad85f17d2e%40googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Ivan](https://avatars.discourse-cdn.com/v4/letter/i/df788c/32.png) [@Ivan](https://discuss.elastic.co/u/Ivan)\
**Post date:** [February 12, 2014, 4:24pm UTC](https://discuss.elastic.co/t/suggestion-distanceunit-nauticalmiles-is-a-worthy-addition/15710/10 "2014-02-12T16:24:52Z")

</div>

I'm glad I was able to steer you in the right direction. I flubbed a PR  
recently since I have not used git consistently in the past few years, so I  
am glad someone else can learn from my mistakes. Your PR seemed to have  
gained some attention! 🙂

Ivan

On Tue, Feb 11, 2014 at 1:17 PM, InquiringMind [brian.from.fl@gmail.com](mailto:brian.from.fl@gmail.com)wrote:

> Ivan,
> 
> Thanks so much for the advice. I created the nm-branch (nautical miles  
> branch) off of master, then cloned it to my laptop. Found the two files  
> (DistanceUnit, and DistanceUnitTests). Made the (very simple) changes. Then  
> built ES and ran only the tests in DistanceUnitTests. The build was  
> surprisingly quick; the tests ran and succeeded:
> 
> $ mvn test -Dtests.class=org.elasticsearch.common.unit.DistanceUnitTests  
>   
> [INFO] Your default console's encoding may not display certain unicode  
> glyphs: MacRoman  
> Executing 1 suite with 1 JVM.
> 
> Started J0 PID(9572@).  
> Suite: org.elasticsearch.common.unit.DistanceUnitTests  
> Completed in 0.54s, 2 tests
> 
> ## [INFO] JVM J0: 0.44 .. 1.56 = 1.12s [INFO] Execution time total: 1.57 sec. [INFO] Tests summary: 1 suite, 2 tests [INFO]
> 
> ## [INFO] BUILD SUCCESS [INFO]
> 
> ## [INFO] Total time: 8.507s [INFO] Finished at: Tue Feb 11 15:57:37 EST 2014 [INFO] Final Memory: 10M/123M [INFO]
> 
> Here is the pull request:  
> [Add support for distances in nautical miles by brian-from-fl · Pull Request #5088 · elastic/elasticsearch · GitHub](https://github.com/elasticsearch/elasticsearch/pull/5088)
> 
> Please let me know if anything is amiss. This is my first actual use of  
> GitHub. A local git expert offered his advice as well, but any errors are  
> mine and no one else's.
> 
> Brian
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/1ed828ce-77e6-46cc-851b-90c0b27d05bb%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/1ed828ce-77e6-46cc-851b-90c0b27d05bb%40googlegroups.com)  
> .
> 
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CALY%3DcQCaCWYy0EUmEFk3GwKf48CM5QVL\_Ska-K\_TdeUTx-WZNw%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CALY%3DcQCaCWYy0EUmEFk3GwKf48CM5QVL_Ska-K_TdeUTx-WZNw%40mail.gmail.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 1:50am UTC](https://discuss.elastic.co/t/suggestion-distanceunit-nauticalmiles-is-a-worthy-addition/15710/11 "2017-07-06T01:50:43Z")

</div>


