[
https://issues.apache.org/jira/browse/USERGRID-1012?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15092927#comment-15092927
]
ASF GitHub Bot commented on USERGRID-1012:
------------------------------------------
GitHub user GERey opened a pull request:
https://github.com/apache/usergrid/pull/462
Usergrid 1012
Created test to address possible issue noted here
https://issues.apache.org/jira/browse/USERGRID-1012
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/GERey/usergrid USERGRID-1012
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/usergrid/pull/462.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #462
----
commit 27b703e19be504eeacbd3061c6c240bd53be6748
Author: George Reyes <[email protected]>
Date: 2016-01-11T18:26:39Z
Added the test from the issue , still needs to be fixed to highlight he
issue.
commit bdec0191f316f2b8f42adb919ba829e389caf564
Author: George Reyes <[email protected]>
Date: 2016-01-11T22:47:48Z
Added a test proving that the issue does not exist.
commit e8a842b934574cfee19a90366f9f86e769dde97f
Author: George Reyes <[email protected]>
Date: 2016-01-11T23:19:55Z
Removed comments and added additional error checking to the test.
----
> Geolocation with limit of 610.000 returns a result with distance of 610.09
> --------------------------------------------------------------------------
>
> Key: USERGRID-1012
> URL: https://issues.apache.org/jira/browse/USERGRID-1012
> Project: Usergrid
> Issue Type: Story
> Reporter: Jeffrey
> Assignee: George Reyes
> Priority: Critical
>
> Testing with the following entities and locations shows that we are rounding
> when people might not be expecting it:
> UsergridEntity e = new UsergridEntity(collectionName);
> e.setLocation(37.334115, -121.894340);
> e.setProperty("name", "Apigee Office");
> e.POST();
> UsergridEntity amicis = new UsergridEntity(collectionName);
> amicis.setLocation(37.335616, -121.894168);
> amicis.setProperty("name", "Amicis");
> amicis.POST();
> UsergridEntity sanPedroMarket = new UsergridEntity(collectionName);
> sanPedroMarket.setLocation(37.336499, -121.894356);
> sanPedroMarket.setProperty("name", "SanPedroMarket");
> sanPedroMarket.POST();
> UsergridEntity saintJamesPark = new UsergridEntity(collectionName);
> saintJamesPark.setLocation(37.339079, -121.891422);
> saintJamesPark.setProperty("name", "saintJamesPark");
> saintJamesPark.POST();
> UsergridEntity sanJoseNews = new UsergridEntity(collectionName);
> sanJoseNews.setLocation(37.337812, -121.890784);
> sanJoseNews.setProperty("name", "sanJoseNews");
> sanJoseNews.POST();
> UsergridEntity deAnza = new UsergridEntity(collectionName);
> deAnza.setLocation(37.334370, -121.895081);
> deAnza.setProperty("name", "deAnza");
> deAnza.POST();
> ?ql=select+*++WHERE+location++within+610.0+of+37.334110260009766,-121.89434051513672
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)