Canalplan Forums

Discussions => Canalplan Site issues => Topic started by: FLHerne on Apr 18, 2026, 04:48 PM

Title: Identifying locks in data geojson
Post by: FLHerne on Apr 18, 2026, 04:48 PM
I've been experimenting with using the geojson data for a personal project.

I had expected that filtering places with {"layer": "locks"}  would give me a complete set of locks, and it /almost/ does.
Unfortunately not quite though, for example this lock at Audlem (https://canalplan.org.uk/place/lqsj) is also tagged as having a milepost  which puts it into "layer: "features".

{
    "type":"Feature",
    "geometry": {
        "type":"Point",
        "coordinates":[-2.50950643793115,52.977414618419999]
    },
    "id":451117,
    "properties": {
           "title": "Audlem Lock No 17",
           "cp_id":"9o31",
           "icon":"cp-milepost",
           "layer":"facilities",
           "cp_rotate":0
    }
}

That seems to make it impossible to identify or label all locks from the data files - to determine which are actually locks it would be necessary to individually scrape each location page which would be antisocial.

In general a lot of information about places that I was hoping to use is omitted from the geojson data. Would it be possible to export a bit more?

Thanks,
Francis H
Title: Re: Identifying locks in data geojson
Post by: Stephen Atty on Apr 19, 2026, 05:29 PM
Can you raise this as a bug/feature request.
Title: Re: Identifying locks in data geojson
Post by: FLHerne on Apr 27, 2026, 02:28 PM
I have done so -
https://canalplan.org.uk/bugtrack/view.php?id=1374 (https://canalplan.org.uk/bugtrack/view.php?id=1374)

Sorry for the delay, the nice weather has had me painting a boat this week...