Geo location in array format


(Shay Banon) #1

Hi fellows,

A recent discussion on an issue pointed to the fact that elasticsearch geo format for location defined as array does not match the ones defined in GeoJSON. Instead of having the values in the array in the format of [lon, lat] (as in GeoJSON), it is expected to be in [lat, lon].

This only applies when providing the location information in arrays (and not explicit lat/lon field names). I would like to change this to match GeoJSON.

This is a breaking change, but I think it will make interoperability with other systems much simpler. If you have concerns, shout, otherwise, I will work on making this change for upcoming 0.15.

-shay.banon


(edecitre) #2

+1
OpenLayers, GeoCouch, mapquery, ...
do use GeoJSON.
It would enhance ES presence in location based services.


(Shay Banon) #3

Just pushed the breaking change: https://github.com/elasticsearch/elasticsearch/issues/issue/661. Hopefully this will mean simpler integration with systems that talk GeoJSON.

-shay.banon
On Monday, January 31, 2011 at 12:30 AM, Shay Banon wrote:

Hi fellows,

A recent discussion on an issue pointed to the fact that elasticsearch geo format for location defined as array does not match the ones defined in GeoJSON. Instead of having the values in the array in the format of [lon, lat] (as in GeoJSON), it is expected to be in [lat, lon].

This only applies when providing the location information in arrays (and not explicit lat/lon field names). I would like to change this to match GeoJSON.

This is a breaking change, but I think it will make interoperability with other systems much simpler. If you have concerns, shout, otherwise, I will work on making this change for upcoming 0.15.

-shay.banon


(system) #4