Closed emanuelemassaro closed 5 years ago
Hi @emanuelemassaro ,
Looks like the result is correct. You get back 399
nearest poi records from all 399
nodes in your nodes_gdf. You are doing a count on poi id using unique which is why you only get 84
. What is happening is that your result shows some network nodes have the same poi id that it finds as being the closest which make sense. For example in my replicated analysis of your same data, node ids: 5483212914
and 5483212915
both have poi id 66
as its closest poi id.
On the other hand if you really wanted to get the opposite of this - nearest node id to each poi you could try setting the num_pois
param to be 100 and then would have to reshape the results in some way...
Hope this helps. Closing as its not issue.
I am trying to use the pandana package for assigning point of interest (i.e. points) to a road network.
The problem is that this procedure is not able to assign the accessibility to all the pois we define. In particular here we define 100 pois and we only able to get the accessibility measure for 84 of them.
I am doing the following as suggested here and here.
I define a network from open street map.
Now if I check the number of pois in
npi
it is only81
and not100
.Why?