Modify ↓
#16546 closed enhancement (fixed)
Support Overpass API JSON format
Reported by: | Don-vip | Owned by: | team |
---|---|---|---|
Priority: | normal | Milestone: | 18.08 |
Component: | Core | Version: | |
Keywords: | overpass api download json | Cc: |
Description
There is some discussion about adding JSON format output for the OSM API.
It may be possible that the format matches Overpass API JSON.
We should start by supporting this format. Currently we force XML output in OverpassDownloadReader
:
/** * 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]"); }
Attachments (0)
Change History (5)
comment:1 Changed 3 years ago by
Milestone: | → 18.08 |
---|
comment:2 Changed 3 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
In 14086/josm: