Changes between Version 42 and Version 43 of Help/Action/OpenLocation
- Timestamp:
- 2020-03-07T10:41:04+01:00 (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Help/Action/OpenLocation
v42 v43 2 2 3 3 = File > Open Location = 4 == Dialog ==5 [[Image(source:trunk/images/openlocation.png,middle)]] ''Keyboard shortcut:'' **`Ctrl+L`**6 4 7 [[ PageOutline(2-4,Table of Contents)]]5 [[JOSMImage(openlocation,middle,link=,margin-right=20,48)]] ''Keyboard shortcut:'' **`Ctrl+L`** 8 6 9 **Load OSM data from an URL either in the current data layer or in a new data layer.** 7 [[PageOutline(2-2,Table of Contents)]] 10 8 11 The following dialog is displayed: 9 **Open an URL.** 12 10 13 [[Image(download-location.png)]] 11 [[Image(Help/Action/OpenLocation:download-location.png,right, link=,margin-left=15,margin-right=10)]] 12 This action interprets various kinds URLs to download several types of OSM and JOSM data. 14 13 15 You can enter the URL where to download data from and click **Download URL**. 14 It handles the URLs being dropped by mouse or pasted via clipboard into the [wikitr:/Help/MapView Mapview], too. 15 This happens by silently reusing the current state of the checkboxes of the dialog. 16 16 17 '''It is also possible to simply drop or paste (CTRL+V) the URL into the JOSM [wiki:Help/MapView Map View] without using the Open Location window. It only requires at least one [wiki:Help/Dialog/LayerList data layer].''' Note, that the current state of the "Separate Layer" check box in the Open location window influences also this feature.17 The ''Download as new layer'' checkbox controls if the data is loaded in a new layer. 18 18 19 == Check boxes == 20 Download as new layer:: 21 If checked, the data is loaded in a new layer, if not selected, the data is loaded in the current data layer. (If there isn't any data layer yet, a new data layer is always created.) 22 Zoom to downloaded data:: 23 If checked the map view will move to the downloaded data after downloading, if not checked it will stay at its current position. (If [ExpertMode expert mode] is off this checkbox is not displayed.) 19 By default the map view pans to the downloaded data. 20 When checking ''Zoom to downloaded data'' off no panning is done in [ExpertMode expert access] mode. 24 21 25 22 == Data sources == 26 '''To see the full list of supported data sources open the Open Location window, enter nothing and press the Download URL button.'''27 23 28 Examples of the most importantdata sourcesare listed hereafter.24 If the URL matches several data sources, a window will follow to choose the type of data to download. 29 25 30 If the URL you entered matches several data sources, a window will pop up where you can choose which of thedata sourcesyou want to download.26 Examples of data sources are listed hereafter. 31 27 32 28 === OSM data === 33 29 ==== Current version of objects ==== 34 The OSM web server isthe 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 (replace `123456789` with the object id).30 The OSM servers are 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 (replace `123456789` with the object id). 35 31 36 * for a node the URL is `https://api.openstreetmap.org/api/0.6/node/123456789` 37 * for a way the URL is `https://api.openstreetmap.org/api/0.6/way/123456789` 38 * for a relation the URL is `https://api.openstreetmap.org/api/0.6/relation/123456789` 39 40 You can also use the URL format of osm.org: 41 42 * for a node the URL is `https://www.openstreetmap.org/node/123456789` 43 * for a way the URL is `https://www.openstreetmap.org/way/123456789` 44 * for a relation the URL is `https://www.openstreetmap.org/relation/123456789` 32 Example of an API URL: `https://api.openstreetmap.org/api/0.6/way/123456789`\\ 33 Example of an URL from the slippy map: `https://www.openstreetmap.org/node/123456789` 45 34 46 35 ==== Older version of objects ==== 47 36 You can also load older versions of an object (replace `123` with the version number) 48 * for a node the URL is `https://api.openstreetmap.org/api/0.6/node/<node id>/123` 49 * for a way the URL is `https://api.openstreetmap.org/api/0.6/way/<way id>/123` 50 * for a relation the URL is `https://api.openstreetmap.org/api/0.6/relation/<relation id>/123` 37 Example of an API URL: `https://api.openstreetmap.org/api/0.6/relation/<relation id>/123` 51 38 52 39 ==== Changeset ==== 53 * for all objects belonging to a changeset the URL is `https://www.openstreetmap.org/changeset/123456789` (replace `123456789` with the changeset id)40 For all objects belonging to a changeset the URL is `https://www.openstreetmap.org/changeset/123456` (replace `123456` with the changeset id) 54 41 55 42 ==== Area ==== 56 * foran area the URL is `https://www.openstreetmap.org/#map=18/46.20140/4.27022`43 For all objects in an area the URL is `https://www.openstreetmap.org/#map=18/46.20140/4.27022` 57 44 58 45 ==== Other servers ==== … … 61 48 * [osmwiki:Overpass_API Overpass API] 62 49 63 === =geo: URIs/URLs====64 *downloadsosm data at a small area around the given location, e.g. `geo:37.786971,-122.399677`50 === geo: URIs/URLs === 51 The geographic URL format can be used to download osm data at a small area around the given location, e.g. `geo:37.786971,-122.399677` 65 52 66 53 === Notes === … … 74 61 * 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]) 75 62 63 The full list of supported data sources and URL patterns is shown when an invalid URL was entered. 64 76 65 == See also == 66 * [[JOSMImage(downloadprimitive,middle)]] [wikitr:/Help/Action/DownloadObject Download object] To download an object together with its referrers 77 67 * [[Image(source:trunk/images/download.png,middle)]] [wiki:Help/Action/Download Download data] 78 68 * [[Image(source:trunk/images/downloadprimitive.png,middle)]] [DownloadObject Download object] … … 84 74 85 75 ---- 86 Back to [Menu/File Menu File][[Br]]87 Back to [wiki:/Help Main Help]76 Back to [wikitr:/Help/Menu/File File menu][[Br]] 77 Back to [wikitr:/Help Main help]
