[openstreetmap/openstreetmap-website] Allow option to view child relations via parent (#2772)

Tom Hughes notifications at github.com
Fri Aug 14 06:12:31 UTC 2020


Well waymarked trails is doing a map rendering, so it's working from a database that contains precomputed geometries created with osm2pgsql, not from an API database which has a rather different schema. It also doesn't do the hard work of resolving those relations in real time.

The biggest difference though is that it selects which relations to process, so it will complete ignore many of the biggest and most complex relations.

In a sense there is already a limited recursion option - that is the difference between the regular API call and the `/full` variant being used here. It's just that the depth limit is 0 or 1 and there's no option for anything more.

Certainly more recursion could be allowed but it would require an API change and changed both here and to the cgimap project that implements the production API.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/issues/2772#issuecomment-673906290
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20200813/d54f2d49/attachment.htm>


More information about the rails-dev mailing list