Skip to main content
Question

NeighborFinder: several matches for one street

  • October 20, 2021
  • 4 replies
  • 10 views

Hi, 

 

Is it possible to connect a coordinate with a street using for example NeighborFinder and generate several hits for one street if there are several coordinates close to the street? For example, if there are 5 coffee shops close to Arbitrarystreet, I want it to say that there are 5 coffee shops nearby and not just that there is a coffee shop nearby.

 

Thanks!

4 replies

caracadrian
Contributor
Forum|alt.badge.img+23
  • Contributor
  • 571 replies
  • October 20, 2021

Enable Generate List in NeighborFinder then use ListElementCounter to count the elements in the list.


  • Author
  • 3 replies
  • October 20, 2021

Enable Generate List in NeighborFinder then use ListElementCounter to count the elements in the list.

Thank you for your answer.

 

I have hundreds of streets and hundreds of coffee shops though. And the NeighborFinder seems to only associate the closest coffee shop with a street, even though I want the number of coffee shops within for example 50 m of a street.


  • Author
  • 3 replies
  • October 20, 2021

Thank you for your answer.

 

I have hundreds of streets and hundreds of coffee shops though. And the NeighborFinder seems to only associate the closest coffee shop with a street, even though I want the number of coffee shops within for example 50 m of a street.

Update: I solved it temporarily by buffering the coordinates to an area and using the LineOnAreaOverlayer which showed me the number of overlaps.


caracadrian
Contributor
Forum|alt.badge.img+23
  • Contributor
  • 571 replies
  • October 20, 2021

Thank you for your answer.

 

I have hundreds of streets and hundreds of coffee shops though. And the NeighborFinder seems to only associate the closest coffee shop with a street, even though I want the number of coffee shops within for example 50 m of a street.

You can specify how many neighbours to find and a max distance