[Openstreetmap-dev] REST

Nick Whitelegg Nick.Whitelegg at solent.ac.uk
Wed Jul 20 11:19:16 BST 2005


Stefan,

Looks interesting. A couple of points:

- notice each street is represented as a separate track on your schema.
Would it not make more sense to have each street as a separate track
*segment* (as I have done)? That way, if you survey a route in your GPS as
a track, then divide it up into different segments (different roads, paths
etc) you could upload the whole track back into your GPS if needed?

I do think that an explicit set of "permissions" for different user types
(car, horse, foot, bike) is essential, this is particularly true in the UK
countryside where there are a whole array of different types of path, each
of which has different allowed users. e.g.

footpath : foot  yes, horse no, bike no, car no
bridleway: foot yes, horse yes, bike yes, car no
"permissive" footpath: foot yes (but not legally enshrined, only at
discretion of the landowner); all others, no
byway: unsurfaced track, but foot yes, bike yes, horse yes, car yes

My schema involves an int value for each permission, rather than a boolean,
to account for different classes of road, e.g.

regular footpath: foot 1, horse 0, bike 0, car 0
bridleway: foot 1, horse 1, bike 1, car 0
byway: foot 1, horse 1, bike 1, car 1
minor road: foot 1, horse 1, bike 1, car 2
B road (Secondary road, D road, county road): foot 1, horse 1, bike 1, car
3
A road (Primary road, N road, state road) : foot 1, horse 1, bike 1, car 4
Motorway (Autobahn, Autoroute, Interstate, etc) : foot 1, horse 1, bike 1,
car 5

So if I want all surfaced roads I can select those segments with a "car"
value of at least 2.

I think UK rights of way are more complicated than other countries but I'm
sure that this schema could be applied internationally.

Different "foot" values could then distinguish between "official" footpaths
and "permissive" paths (where access has been granted at the discretion of
the landowner). I have not done this yet but it could easily be done, e.g.
"foot"=1 means permissive access only, "foot"=2 means legally enshrined
access.

Nick





More information about the dev mailing list