Jeffrey created USERGRID-1012:
----------------------------------
Summary: 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
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)