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


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:, 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. 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

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 ♦
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

accept rate: 11%

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]( "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: 02 Jun '11, 07:32

question was seen: 237,228 times

last updated: 02 Jun '11, 12:56

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