[[TranslatedPages]] = File > Open Location = == Dialog == [[Image(source:trunk/images/openlocation.png,middle)]] ''Keyboard shortcut:'' **`Ctrl+L`** [[PageOutline(2-4,Table of Contents)]] **Load OSM data from an URL either in the current data layer or in a new data layer.** The following dialog is displayed: [[Image(Download location window 11223.png,nolink)]] You can enter the URL where to download data from and click **Download URL**. '''It is also possible to simply paste (CTRL+V) the URL into the JOSM [wiki:Help/MapView Map View] without using the Open Location window. It only requires atleast one [wiki:Help/Dialog/LayerList data layer] (since r11286).''' === Separate Layer === You can control whether the data is loaded into the current or in a new layer: * if **Separate Layer** is selected, the data is loaded in a new layer * if **Separate Layer** is not selected, the data is loaded in the current data layer If there isn't a data layer yet, a new data layer is always created. == Data sources == ''To see the full list of supported data sources open the Open Location Window, enter nothing and press the Download URL button.'' [[Image(Download location 11223.png​,nolink)]] If the URL you entered matches several data sources, a window will pop up where you can choose which of the data sources you want to download. === OSM data === ==== Current version ==== The OSM web server is the main data source you can use here. For instance, if you know the [Concepts/Object#Objectids object id] of a [Concepts/Object#NodesWaysRelations node, way, or relation] you can load the respective object with one of the following URLs: * for a node the URL is `https://api.openstreetmap.org/api/0.6/node/123456789` (replace `123456789` with the node id) * for a way the URL is `https://api.openstreetmap.org/api/0.6/way/123456789` (replace `123456789` with the way id) * for a relation the URL is `https://api.openstreetmap.org/api/0.6/relation/123456789` (replace `123456789` with the relation id) You can also use the URL format of osm.org: * for a node the URL is `https://www.openstreetmap.org/node/123456789` (replace `123456789` with the node id) * for a way the URL is `https://www.openstreetmap.org/way/123456789` (replace `123456789` with the way id) * for a relation the URL is `https://www.openstreetmap.org/relation/123456789` (replace `123456789` with the relation id) ==== Older versions of objects ==== You can also load older versions of an object * for a node the URL is `https://api.openstreetmap.org/api/0.6/node//123` (replace `123` with the version number) * for a way the URL is `https://api.openstreetmap.org/api/0.6/way//123` (replace `123` with the version number) * for a relation the URL is `https://api.openstreetmap.org/api/0.6/relation//123` (replace `123` with the version number) ==== Changeset ==== * for all objects belonging to a changeset the URL is `https://www.openstreetmap.org/changeset/123456789` (replace `123456789` with the changeset id) ==== Area ==== * for an area the URL is `https://www.openstreetmap.org/#map=18/46.20140/4.27022` ==== Other servers ==== Additional to the main osm server listed above, other servers are available too, e.g.: * [osmwiki:Xapi XAPI servers] * [osmwiki:Overpass_API Overpass API] ==== geo: URIs/URLs ==== * downloads osm data at a small area around the given location, e.g. `geo:37.786971,-122.399677` === Notes === * If the URL contains `/note/123456` you can choose if you also want to download the [wiki:Help/Dialog/Notes Note] with the given id. * If the URL contains `&layers=N` you can choose if you also want to download the Notes in the given area. === GPS === * URLs ending with .gpx * OSM user traces in the format `​https://www.openstreetmap.org/user/foo/traces/2277313` * OSM user traces in the format `https://www.openstreetmap.org/edit?gpx=2277313` * OSM user traces in the format `https://www.openstreetmap.org/edit?gpx=2277313#map=14/-20.7321/-40.5328` (which can also be found at the [osmwww:user/Skippern/traces/2277313 osm user traces page]) == See also == * [[Image(source:trunk/images/download.png,middle)]] [wiki:Help/Action/Download Download] * [[Image(source:trunk/images/downloadprimitive.png,middle)]] [DownloadObject Download object] * [[Image(source:trunk/images/download.png,middle)]] [DownloadParentWaysAndRelation Download parent ways and relations] * [[Image(source:trunk/images/download-overpass.png,middle)]] [OverpassDownload Download from Overpass API] * [[Image(source:trunk/images/download_in_view.png,middle)]] [DownloadOsmInView Download in current view] * [[Image(https://raw.githubusercontent.com/JOSM/continuos-download/master/images/continuous-download.png,middle)]] [osmwiki:JOSM/Plugins/continuosDownload continuosDownload Plugin] * [[Image(source:trunk/images/open.png,middle)]] [Action/Open Open ...] * [[Image(source:trunk/images/openrecent.png,middle)]] [Action/OpenRecent Open Recent] ---- Back to [Menu/File Menu File][[Br]] Back to [wiki:/Help Main Help]