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

Finalizing v0.7 #187

Open
wants to merge 34 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
9fca283
GitHub Actions (#153)
smmaurer Dec 8, 2020
7f9b45b
Resolve Windows dtype error (#154)
smmaurer Dec 16, 2020
de0b047
Notebook cleanup
smmaurer Dec 22, 2020
87ef861
Require C++11 (#155)
smmaurer Jan 4, 2021
236b0b1
Binary installers now available on Pip (#157)
smmaurer Mar 15, 2021
4bacf4c
Fix build on non-x86 (#158)
pkubaj Mar 16, 2021
4cc4666
Native support for ARM Macs (#159)
smmaurer Mar 16, 2021
9a6ebfe
Staging v0.6.1 (#160)
smmaurer Mar 19, 2021
3e3d35c
Documentation cleanup (#163)
sablanchard Apr 6, 2021
657406a
Versioning
smmaurer Jan 5, 2021
c50bdc1
Initial range query
smmaurer Jan 5, 2021
abbe120
Cython language_level
smmaurer Jan 7, 2021
bd76d5b
Node id conversion in c++
smmaurer Jan 7, 2021
1d46875
Multiple source nodes
smmaurer Jan 8, 2021
0b57562
Range example
smmaurer Feb 9, 2021
2603c2e
add docstrings
ljwolf Jul 9, 2021
d39f7ee
remove 2.7 and add 3.9
ljwolf Jul 9, 2021
47b99fa
cast output to indexed dataframe
ljwolf Jul 9, 2021
fc37202
drop duplicated node pairs
ljwolf Jul 9, 2021
63f01ff
censor results (cached or otherwise) greater than search radius
ljwolf Jul 9, 2021
7aee012
move radius filter logic to pandas postprocessing
ljwolf Jul 9, 2021
5760c15
add test and blacken
ljwolf Jul 9, 2021
14b20bf
Support mapping_distance with POIs
Rikuoja Aug 30, 2021
afd5759
Change pytables dependency for python 3.10.x up to 3.7
thomastu Apr 27, 2022
b5b62f4
Merge pull request #167 from ljwolf/range-queries
smmaurer Aug 23, 2022
09b51c4
Merge branch 'dev' into patch-1
smmaurer Aug 23, 2022
1e3920f
Merge pull request #178 from thomastu/patch-1
smmaurer Aug 23, 2022
da0965f
New setup.py/pyproject.toml packaging standards (#165)
smmaurer Aug 23, 2022
e5443e1
Merge branch 'dev' of https://github.com/GispoCoding/pandana into Gis…
smmaurer Aug 23, 2022
7529473
Merge branch 'GispoCoding-dev' into dev
smmaurer Aug 23, 2022
88ec50a
Merge branch 'dev' of https://github.com/udst/pandana into dev
smmaurer Aug 23, 2022
0e82a24
Support Pandas 2.0 (#185)
smmaurer Jul 25, 2023
9616c2c
Informative warning for shortest path unsigned integer (#169)
PyMap Jul 25, 2023
9bcebd6
Staging v0.7 release (#186)
smmaurer Jul 26, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Support mapping_distance with POIs
Rikuoja committed Aug 30, 2021
commit 14b20bf9ca4d95051aab673cb41d5979d1c03234
12 changes: 10 additions & 2 deletions pandana/network.py
Original file line number Diff line number Diff line change
@@ -627,7 +627,8 @@ def init_pois(self, num_categories, max_dist, max_pois):
)
return None

def set_pois(self, category=None, maxdist=None, maxitems=None, x_col=None, y_col=None):
def set_pois(self, category=None, maxdist=None, maxitems=None, x_col=None, y_col=None,
mapping_distance=None):
"""
Set the location of all the points of interest (POIs) of this category.
The POIs are connected to the closest node in the Pandana network
@@ -648,6 +649,13 @@ def set_pois(self, category=None, maxdist=None, maxitems=None, x_col=None, y_col
The x location (longitude) of POIs in this category
y_col : pandas.Series (float)
The y location (latitude) of POIs in this category
mapping_distance : float, optional
The maximum distance that will be considered a match between the
POIs and the nearest node in the network. This will usually
be a distance unit in meters however if you have customized the
impedance this could be in other units such as utility or time
etc. If not specified, every POI will be mapped to
the nearest node.

Returns
-------
@@ -677,7 +685,7 @@ def set_pois(self, category=None, maxdist=None, maxitems=None, x_col=None, y_col

self.max_pois = maxitems

node_ids = self.get_node_ids(x_col, y_col)
node_ids = self.get_node_ids(x_col, y_col, mapping_distance=mapping_distance)

self.poi_category_indexes[category] = node_ids.index