Am 02.03.2018 um 06:12 schrieb Andy Allan: > On 2 March 2018 at 04:43, Paul Norman <penor...@mac.com> wrote: >> I wrote a blog post on how to get started with the API projects: >> http://paulnorman.ca/blog/2018/02/make-the-website-use-the-api-gsoc-project/ > It would be remiss of me to point out that I don't think this project > is a good idea. Although I said similar things last year ( > https://lists.openstreetmap.org/pipermail/dev/2017-February/029702.html > ) I'll say it again now. > > The idea of having a single-page javascript app to replace the browse > pages is overcomplicating a problem that barely exists. We would then > have a browser asking the website for some javascript code, which then > runs and asks the website for some API request. The website will fetch > the data from the database, construct a response in XML, then the > javascript decodes that, and finally constructs some html for the user > to view.
Curiously, we already have _both_ approaches in use today, as can be seen on the object detail page [1]. While the sidebar shows server side rendered content, the map itself gets its data via a separate Javascript based API call ([2], [3]). [1] https://www.openstreetmap.org/node/5324545411 [2] https://www.openstreetmap.org/api/0.6/node/5324545411 [3] https://www.openstreetmap.org/api/0.6/way/426638763/full _______________________________________________ dev mailing list dev@openstreetmap.org https://lists.openstreetmap.org/listinfo/dev