# Geo Coordinate Mapping

**URL:** <https://discuss.elastic.co/t/geo-coordinate-mapping/287956>\
**Category:** Elasticsearch\
**Created:** [October 28, 2021, 7:49pm UTC](https://discuss.elastic.co/t/geo-coordinate-mapping/287956 "2021-10-28T19:49:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![workenehg](https://avatars.discourse-cdn.com/v4/letter/w/a8b319/32.png) [@workenehg](https://discuss.elastic.co/u/workenehg)\
**Post date:** [October 28, 2021, 7:49pm UTC](https://discuss.elastic.co/t/geo-coordinate-mapping/287956/1 "2021-10-28T19:49:15Z")

</div>

Currently in the process of indexing data from Oracle and one of the properties is a "Coordinate" .  
we would like to be able to do a geo search on the field but since it is currently added as "long" as shown below , we are not able to perform a search using the field...

can we add mapping to set these properties to Geo\_Point, if so, does anyone have a good example?

"captureCoordinates" : {  
"properties" : {  
"sdoGtype" : {  
"type" : "long"  
},  
"sdoPoint" : {  
"properties" : {  
"x" : {  
"type" : "float"  
},  
"y" : {  
"type" : "float"  
}  
}  
},  
"sdoSrid" : {  
"type" : "long"  
}  
}  
}

---

<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:** [October 29, 2021, 1:02am UTC](https://discuss.elastic.co/t/geo-coordinate-mapping/287956/2 "2021-10-29T01:02:41Z")

</div>

You will want;

```auto
"sdoPoint" : "geo_point"

```

Then the `x` and `y` will become the lat and lon automatically.

---

<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:** [November 26, 2021, 1:03am UTC](https://discuss.elastic.co/t/geo-coordinate-mapping/287956/3 "2021-11-26T01:03:16Z")

</div>

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