# Other Coordinates Support

**URL:** <https://discuss.elastic.co/t/other-coordinates-support/81300>\
**Category:** Elasticsearch\
**Created:** [April 5, 2017, 11:17am UTC](https://discuss.elastic.co/t/other-coordinates-support/81300 "2017-04-05T11:17:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Demo\_Demo](https://avatars.discourse-cdn.com/v4/letter/d/bc79bd/32.png) [@Demo\_Demo](https://discuss.elastic.co/u/Demo_Demo)\
**Post date:** [April 5, 2017, 11:17am UTC](https://discuss.elastic.co/t/other-coordinates-support/81300/1 "2017-04-05T11:17:50Z")

</div>

Hi, We have some coordinates data in this format [https://en.wikipedia.org/wiki/Ordnance\_Survey\_National\_Grid](https://en.wikipedia.org/wiki/Ordnance_Survey_National_Grid) as they say ( Eastings and Northings Format ) and we use SpatialRecursivePrefixTreeFieldType ( [https://cwiki.apache.org/confluence/display/solr/Spatial+Search](https://cwiki.apache.org/confluence/display/solr/Spatial+Search) ) datatype in solr. Do you have any equivalent datatype to support this.

I have tried below settings and it throws error:  
{  
"mappings" : {  
"address" : {  
"properties" : {  
....  
"streetname" : {"type": "string"},  
"postcode" : {"type": "string"},  
"location": {  
"type": "geo\_shape",  
"tree": "quadtree",  
"precision": "1m"  
}  
}  
}  
}  
}

And if i try to insert record it throws below error - Do you only support lat & long ?  
{  
"took" : 0,  
"errors" : true,  
"items" : [  
{  
"index" : {  
"\_index" : "xxxxaddress",  
"\_type" : "address",  
"\_id" : "1",  
"status" : 400,  
"error" : {  
"type" : "mapper\_parsing\_exception",  
"reason" : "failed to parse [location]",  
"caused\_by" : {  
"type" : "invalid\_shape\_exception",  
"reason" : "Bad X value 437489.01 is not in boundary Rect(minX=-180.0,maxX=180.0,minY=-90.0,maxY=90.0)"  
}  
}  
}  
}  
]  
}

And the data i am trying to add through bulk insert is below

{ "index": {"\_index": "xxaddress", "\_type": "address", "\_id": 1} }  
{ /\* some data \*/ ,"streetname": "XYZ ROAD", "location": { "type": "point", "coordinates": [437489.01, 554815.00] },"postcode": "S12 1QF" }

---

<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:** [April 8, 2017, 11:41pm UTC](https://discuss.elastic.co/t/other-coordinates-support/81300/2 "2017-04-08T23:41:23Z")

</div>

Here's what we support;  
[https://www.elastic.co/guide/en/elasticsearch/reference/5.3/geo-point.html](https://www.elastic.co/guide/en/elasticsearch/reference/5.3/geo-point.html)  
[https://www.elastic.co/guide/en/elasticsearch/reference/5.3/geo-shape.html](https://www.elastic.co/guide/en/elasticsearch/reference/5.3/geo-shape.html)

---

<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:** [May 6, 2017, 11:50pm UTC](https://discuss.elastic.co/t/other-coordinates-support/81300/3 "2017-05-06T23:50:08Z")

</div>

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