HTTP Error 400: Bad Request
No command specified! The following commands are available:
/add_node — adds a node (given by its latitude and longitude) to the current dataset
mandatory parameters: lat, lon
optional parameters: addtags
examples:
/add_node?lat=11&lon=22
/add_node?lon=13.3&lat=53.2&addtags=natural=tree|name=%20%20%20==Great%20Oak==
/add_way — adds a way (given by a semicolon separated sequence of lat,lon pairs) to the current dataset
mandatory parameters: way
optional parameters: addtags
examples:
/add_way?way=53.2,13.3;53.3,13.3;53.3,13.2
/add_way?&addtags=building=yes&way=45.437213,-2.810792;45.437988,-2.455983;45.224080,-2.455036;45.223302,-2.809845;45.437213,-2.810792
/features — reports available commands, their parameters and examples
optional parameters: jsonp, q
examples:
/features
/features?q=import,add_node
/imagery — adds an imagery layer (e.g. WMS, TMS)
mandatory parameters: url
optional parameters: title, type, cookies, min_zoom, max_zoom
examples:
/imagery?title=osm&type=tms&url=https://a.tile.openstreetmap.org/{zoom}/{x}/{y}.png
/imagery?title=landsat&type=wms&url=http://irs.gis-lab.info/?layers=landsat&SRS={proj}&WIDTH={width}&HEIGHT={height}&BBOX={bbox}
/imagery?title=…&type={wms|tms|bing|scanex|wms_endpoint|wmts}&url=…[&cookies=…][&min_zoom=…][&max_zoom=…]
/import — downloads the specified OSM file and adds it to the current data set
mandatory parameters: url
optional parameters: new_layer, layer_name, layer_locked, download_policy, upload_policy
examples:
/import?url=https%3A%2F%2Fjosm.openstreetmap.de%2Fbrowser%2Fjosm%2Ftrunk%2Fdata_nodist%2Fdirection-arrows.osm%3Fformat%3Dtxt
/load_and_zoom — download a bounding box from the API, zoom to the downloaded area and optionally select one or more objects
mandatory parameters: bottom, top, left, right
optional parameters: new_layer, layer_name, addtags, select, zoom_mode, changeset_comment, changeset_source, changeset_hashtags, search, layer_locked, download_policy, upload_policy
examples:
/load_and_zoom?addtags=wikipedia:de=Wei%C3%9Fe_Gasse|maxspeed=5&select=way23071688,way23076176,way23076177,&left=13.740&right=13.741&top=51.05&bottom=51.049
/load_and_zoom?left=8.19&right=8.20&top=48.605&bottom=48.590&select=node413602999&new_layer=true
/load_data — Reads data encoded directly in the URL and adds it to the current data set
mandatory parameters: data
optional parameters: new_layer, mime_type, layer_name, layer_locked, download_policy, upload_policy
examples:
/load_data?layer_name=extra_layer&new_layer=true&data=%3Cosm+version%3D%270.6%27%3E%3Cnode+id%3D%27-1%27+lat%3D%271%27+lon%3D%272%27+%2F%3E%3C%2Fosm%3E
/load_object — downloads the specified objects from the server
mandatory parameters: objects
optional parameters: new_layer, layer_name, layer_locked, download_policy, upload_policy, addtags, relation_members, referrers
examples:
/load_object?new_layer=true&objects=w106159509
/load_object?new_layer=true&objects=r2263653&relation_members=true
/load_object?objects=n100000&referrers=false
/open_file — opens a local file in JOSM
mandatory parameters: filename
examples:
/open_file?filename=/tmp/test.osm
/version — returns the current protocol version of the installed JOSM RemoteControl
optional parameters: jsonp
examples:
/version
/version?jsonp=test
/zoom — download a bounding box from the API, zoom to the downloaded area and optionally select one or more objects
mandatory parameters: bottom, top, left, right
optional parameters: new_layer, layer_name, addtags, select, zoom_mode, changeset_comment, changeset_source, changeset_hashtags, search, layer_locked, download_policy, upload_policy
examples:
/zoom?left=8.19&right=8.20&top=48.605&bottom=48.590&select=node413602999
/zoom?left=8.19&right=8.20&top=48.605&bottom=48.590&search=highway+OR+railway
/zoom?left=8.19&right=8.20&top=48.605&bottom=48.590&search=currentselection&addtags=foo=bar
See https://josm.openstreetmap.de/wiki/Help/Preferences/RemoteControl for complete documentation.