Return distance in elasticsearch results?

Yes you can, by using a script field. For instance, assuming your doc have a geo-point field called location, you could use the following: (note the \u0027 is just an escaped single quote, so \u0027location\u0027 is really ‘location’) curl -XGET ‘http://127.0.0.1:9200/geonames/_search?pretty=1’ -d ‘ { “script_fields” : { “distance” : { “params” : { “lat” : … Read more

OnLocationChanged callback is never called

It looks like you setup should work, since it doesn’t, I would make your example as simple as possible in order to troubleshoot. I would make your request look like requestLocationUpdates(LocationManager.GPS_PROVIDER, 0, 0, locationListener); requestLocationUpdates(LocationManager.NETWORK_PROVIDER, 0, 0, locationListener); This way you get ALL the updates possible. And comment out the part about getting the last … Read more

Is google.loader.clientlocation still supported

It seems this API is kind of “deprecated” although it still works for some IPs. This is the answer I got from here: http://code.google.com/p/google-ajax-apis/issues/detail?id=586 The geolocation functionality in the Loader hasn’t been retired, per se. We stopped documenting it several years ago and have recommended the HTML-based solutions due to their improved accuracy, but the … Read more