Geo location in array format

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

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

Just pushed the breaking change: Geo: All geo components that accept an array of [lat, lon] to change to do [lon, lat] to conform with GeoJSON · Issue #661 · elastic/elasticsearch · GitHub. 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