﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
16546	Support Overpass API JSON format	Don-vip	team	"There is some discussion about adding [https://github.com/zerebubuth/openstreetmap-cgimap/pull/153 JSON format output] for the OSM API.

It may be possible that the format [https://github.com/zerebubuth/openstreetmap-cgimap/pull/153#issuecomment-409366328 matches Overpass API JSON].

We should start by supporting this format. Currently we force XML output in `OverpassDownloadReader`:

{{{
#!java

    /**
     * Fixes Overpass API query to make sure it will be accepted by JOSM.
     * @param query Overpass query to check
     * @return fixed query
     * @since 13335
     */
    public static String fixQuery(String query) {
        return query == null ? query : query
                .replaceAll(""out( body| skel| ids)?( id| qt)?;"", ""out meta$2;"")
                .replaceAll(""(?s)\\[out:(json|csv)[^\\]]*\\]"", ""[out:xml]"");
    }
}}}"	enhancement	closed	normal	18.08	Core		fixed	overpass api download json	
