# Function that returns the UTM zone?

**URL:** <https://discourse.julialang.org/t/function-that-returns-the-utm-zone/91568>\
**Category:** Geo\
**Created:** [December 12, 2022, 8:10pm UTC](https://discourse.julialang.org/t/function-that-returns-the-utm-zone/91568 "2022-12-12T20:10:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![alex-s-gardner](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/alex-s-gardner/32/30210_2.png) [@alex-s-gardner](https://discourse.julialang.org/u/alex-s-gardner)\
**Post date:** [December 12, 2022, 8:10pm UTC](https://discourse.julialang.org/t/function-that-returns-the-utm-zone/91568/1 "2022-12-12T20:10:37Z")

</div>

Is there a Julia function that returns the UTM zone when given a latitude and longitude similar to Matlab’s [utmzone](https://www.mathworks.com/help/map/ref/utmzone.html)?

---

<div class="post-metadata">

**Author:** ![chadagreene](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/chadagreene/32/34924_2.png) [@chadagreene](https://discourse.julialang.org/u/chadagreene)\
**Post date:** [December 12, 2022, 8:28pm UTC](https://discourse.julialang.org/t/function-that-returns-the-utm-zone/91568/2 "2022-12-12T20:28:27Z")

</div>

There’s a [`utm_zone`](https://github.com/JuliaGeo/Geodesy.jl/blob/master/src/utm.jl) function in the Geodesy.jl package. I think it does exactly what you’re looking for, but it does one better than Matlab’s `utmzone` by including the special rules for Svalbard.
