# Scripted field geo point

**URL:** <https://discuss.elastic.co/t/scripted-field-geo-point/146282>\
**Category:** Kibana\
**Created:** [August 28, 2018, 7:43am UTC](https://discuss.elastic.co/t/scripted-field-geo-point/146282 "2018-08-28T07:43:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Niclas\_Popp\_BPS](https://avatars.discourse-cdn.com/v4/letter/n/f6c823/32.png) [@Niclas\_Popp\_BPS](https://discuss.elastic.co/u/Niclas_Popp_BPS)\
**Post date:** [August 28, 2018, 7:43am UTC](https://discuss.elastic.co/t/scripted-field-geo-point/146282/1 "2018-08-28T07:43:47Z")

</div>

Hi everyone,

Is there a way of using a scripted field(or something else) for adding a geo type field to each event?  
The Geopoint should be dependent on a part of a string fieldtype.

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [August 28, 2018, 9:05am UTC](https://discuss.elastic.co/t/scripted-field-geo-point/146282/2 "2018-08-28T09:05:53Z")

</div>

You should ideally do this before index time, rather than after.

You _might_ be able to do it with a scripted field, it's outside my knowledge, but if you could it would be difficult and expensive.

---

<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:** [September 25, 2018, 9:05am UTC](https://discuss.elastic.co/t/scripted-field-geo-point/146282/3 "2018-09-25T09:05:58Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
