Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can now return the labels of the pois rather than just the distances #47

Merged
merged 3 commits into from
Nov 11, 2015

Conversation

fscottfoti
Copy link
Contributor

just pass include_poi_ids when getting nearest pois, and instead of just distances, you will get the labels of the poi that's at that distance. So for instance, if you're trying ot access the nearest hospitals, you won't just get the distance to the nearest N hospitals, but also the names of the nearest N hospitals. As you might expect with a Pandas-centric view, the names of the hospitals are taken from the index of the x-y series that are passed in to init_pois.

just pass include_poi_ids when getting nearest pois, and instead of just distances, you will get the labels of the poi that's at that distance.  So for instance, if you're trying ot access the nearest hospitals, you won't just get the distance to the nearest N hospitals, but also the names of the nearest N hospitals.  As you might expect with a Pandas-centric view, the names of the hospitals are taken from the index of the x-y series that are passed in to init_pois.
fscottfoti added a commit that referenced this pull request Nov 11, 2015
can now return the labels of the pois rather than just the distances
@fscottfoti fscottfoti merged commit 1af1709 into master Nov 11, 2015
@fscottfoti fscottfoti deleted the which-poi branch November 11, 2015 21:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant