Why not ask your question on the new OpenStreetMap Community Forum?

I want to get the distance of the nearest node for each amenity such as hospital and bank.

Now, I'm using around

to get every node in a specific radius. But I don't know how far the nearest hospital or bank is. It can be 5 km, 10 km or more than 100 km. I decide to set it to be infinity if there are no any amenity in the area. This affects my valuation model to have less accuracy. So, I want to get the number of distance no matter how far it is.

How can I do that?

asked 28 Feb '19, 10:22

Krawan's gravatar image

accept rate: 0%

Hey did you find a solution to this? I am also trying to do something similar although I can have a set radius instead of infinity. I simply want to find the distance to the nearest hospital from a specific co-ordinate with a given radius.

As for your valuation model, Surely over a particular distance, the presence of a hospital or bank does not really have an impact? You could simply set the radius as very high?

But you may be going for something completely different here and I may be mistaken.

(08 Apr, 13:36) Rosh1
Be the first one to answer this question!
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:


question asked: 28 Feb '19, 10:22

question was seen: 1,800 times

last updated: 08 Apr, 13:47

powered by OSQA