NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

3
2

Hello,
I'm searching for a software that can give me a radius of X kilometers of roads around a node. Note that it is not simple "draw a circle" question (like this: http://www.freemaptools.com/radius-around-point.htm), but it involves calculation of road length. The questions is more like "find every node within X-node radius in a graph".

My whole idea is to find suitable locations for a picnic site as far as 50 kilometers driving from home :)

It would be nice if that software can also choose highways that are only for "driving" like primary, secondary, trunk, etc.

http://www.mapnificent.net is something like that, but there are limited numbers of cities around the world. And it measures not by distance but by time for travel. And it uses Google Maps, not OSM.

asked 02 Jun '11, 07:32

ivanatora's gravatar image

ivanatora
2.7k355568
accept rate: 7%

edited 02 Jun '11, 07:34


There's a script in OSM SVN that does that, here. It will require some Perl skills to get it to do your bidding though.

permanent link

answered 02 Jun '11, 10:45

Frederik%20Ramm's gravatar image

Frederik Ramm ♦
82.5k927201273
accept rate: 23%

It's funny you'd ask this, because this is exactly what I was researching this morning. If you'd like to import your OSM data into a PostGIS database, you can use the pgRouting project which has a driving_distance() function which does exactly what you're looking for. Here are some references to get you started.

If you'd like to search more on this subject key words to search are driving distance (even though the cost can be anything, like time, distance is most common), and catchment area.

permanent link

answered 02 Jun '11, 12:56

JoshD's gravatar image

JoshD
3001412
accept rate: 11%

Follow this question

By Email:

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

By RSS:

Answers

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:

×97
×31
×18

question asked: 02 Jun '11, 07:32

question was seen: 237,548 times

last updated: 02 Jun '11, 12:56

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum