# How to write this equation in LogStash lat = lat\_min + (Y \* lat\_range / y\_range) long = long\_min + (X \* long\_range / x\_range)

**URL:** https://discuss.elastic.co/t/how-to-write-this-equation-in-logstash-lat-lat-min-y-lat-range-y-range-long-long-min-x-long-range-x-range/93572
**Category:** Logstash
**Created:** [July 18, 2017, 11:54am UTC](https://discuss.elastic.co/t/how-to-write-this-equation-in-logstash-lat-lat-min-y-lat-range-y-range-long-long-min-x-long-range-x-range/93572 "2017-07-18T11:54:57Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)
#### Post date: [July 18, 2017, 11:58am UTC](https://discuss.elastic.co/t/how-to-write-this-equation-in-logstash-lat-lat-min-y-lat-range-y-range-long-long-min-x-long-range-x-range/93572/2 "2017-07-18T11:58:46Z")

</div>

This looks like a duplicate of [How to write this algorithm in Logstash and display the new fields in Kibana](https://discuss.elastic.co/t/how-to-write-this-algorithm-in-logstash-and-display-the-new-fields-in-kibana/93534)

Please do not open multiple threads for a single issue.

---

_[View the full topic](https://discuss.elastic.co/t/how-to-write-this-equation-in-logstash-lat-lat-min-y-lat-range-y-range-long-long-min-x-long-range-x-range/93572)._
