{"action":"created","issue":{"url":"https://api.github.com/repos/davidmoten/rtree/issues/48","repository_url":"https://api.github.com/repos/davidmoten/rtree","labels_url":"https://api.github.com/repos/davidmoten/rtree/issues/48/labels{/name}","comments_url":"https://api.github.com/repos/davidmoten/rtree/issues/48/comments","events_url":"https://api.github.com/repos/davidmoten/rtree/issues/48/events","html_url":"https://github.com/davidmoten/rtree/issues/48","id":155475942,"number":48,"title":"Does this code support k-nn query?","user":{"login":"starryskyWW","id":10001692,"avatar_url":"https://avatars.githubusercontent.com/u/10001692?v=3","gravatar_id":"","url":"https://api.github.com/users/starryskyWW","html_url":"https://github.com/starryskyWW","followers_url":"https://api.github.com/users/starryskyWW/followers","following_url":"https://api.github.com/users/starryskyWW/following{/other_user}","gists_url":"https://api.github.com/users/starryskyWW/gists{/gist_id}","starred_url":"https://api.github.com/users/starryskyWW/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/starryskyWW/subscriptions","organizations_url":"https://api.github.com/users/starryskyWW/orgs","repos_url":"https://api.github.com/users/starryskyWW/repos","events_url":"https://api.github.com/users/starryskyWW/events{/privacy}","received_events_url":"https://api.github.com/users/starryskyWW/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/davidmoten/rtree/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-05-18T11:15:17Z","updated_at":"2016-05-21T09:33:55Z","closed_at":null,"body":"Thanks for your sharing.\r\nI have many points which records latitude and longitude. I want to know whether this code support K-nn query for each point?\r\nI don't read relevant message except \r\n\r\n> As of 0.7.5 this library does not depend on guava (>2M) but rather depends on guava-mini (11K). The nearest search used to depend on MinMaxPriorityQueue from guava but now uses a backport of Java 8 PriorityQueue inside a custom BoundedPriorityQueue class that gives about 1.7x the throughput as the guava class.\r\n\r\nBut there is no specific example for k-nn query.\r\nThanks so much. "},"comment":{"url":"https://api.github.com/repos/davidmoten/rtree/issues/comments/220768391","html_url":"https://github.com/davidmoten/rtree/issues/48#issuecomment-220768391","issue_url":"https://api.github.com/repos/davidmoten/rtree/issues/48","id":220768391,"user":{"login":"starryskyWW","id":10001692,"avatar_url":"https://avatars.githubusercontent.com/u/10001692?v=3","gravatar_id":"","url":"https://api.github.com/users/starryskyWW","html_url":"https://github.com/starryskyWW","followers_url":"https://api.github.com/users/starryskyWW/followers","following_url":"https://api.github.com/users/starryskyWW/following{/other_user}","gists_url":"https://api.github.com/users/starryskyWW/gists{/gist_id}","starred_url":"https://api.github.com/users/starryskyWW/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/starryskyWW/subscriptions","organizations_url":"https://api.github.com/users/starryskyWW/orgs","repos_url":"https://api.github.com/users/starryskyWW/repos","events_url":"https://api.github.com/users/starryskyWW/events{/privacy}","received_events_url":"https://api.github.com/users/starryskyWW/received_events","type":"User","site_admin":false},"created_at":"2016-05-21T09:33:55Z","updated_at":"2016-05-21T09:33:55Z","body":"Thanks for your kind explanation. There is another problem,\r\nwhen I add rtree-0.7 version dependency in my pom.xml, there is no mistake for the code\r\n`List<Entry<String, Point>> list = new ArrayList<Entry<String, Point>>();\r\nlist.add(new Entry<String,Point>(String.valueOf(i) Point.create(Float.parseFloat(s[0]),Float.parseFloat(s[1]))));` \r\nBut once I change to rtree-0.8-RC1\r\nThere is error hints that The method create(double, double) from the type Point is not visible\r\nAnd when I type Point. in the second situation, there is not any hint for the method in the Point class.\r\nI don't know why. Because the Point class doesn't change in two versions."}}
{"actor":{"display_login":"starryskyWW"}}