Make your first edit to OpenStreetMap

Make your first edit to OpenStreetMap

贡献你的 OpenStreetMap 首次编辑

Intro This quick tutorial will help you make a meaningful contribution to OpenStreetMap (OSM) in less than 15 minutes. By the end, you will have added an official website tag to a nearby shop or amenity. Soon after, your contribution will be ingested into dozens of free OSM-based services, helping people worldwide. Why a website tag? Once a place in OSM has a website tag, it becomes way easier to determine other helpful info about that place. Nearly every place’s official website has info about its phone, opening_hours, email, and other tags. So adding a website tag is a great place to get started. Got your stopwatch out? Ready, set, go!

简介 本快速教程将帮助你在 15 分钟内为 OpenStreetMap (OSM) 做出有意义的贡献。完成后,你将为附近的商店或设施添加一个官方网站标签。不久之后,你的贡献将被数十个基于 OSM 的免费服务所采用,从而帮助全球用户。为什么要添加网站标签?一旦 OSM 中的某个地点有了网站标签,就更容易确定该地点的其他有用信息。几乎每个地点的官方网站都包含其电话、营业时间、电子邮件和其他标签信息。因此,添加网站标签是一个很好的入门方式。准备好计时器了吗?预备,开始!


1. Create an OSM account Sign up for a free OSM account and then confirm your email.

1. 创建 OSM 账户 注册一个免费的 OSM 账户,然后确认你的电子邮件。


2. Download and Run JOSM Download JOSM (~365 MB) for your specific operating system and then run it. JOSM, the Java OSM editor app, is a powerful tool for querying and editing OSM data. While simpler in-browser editors exist, JOSM offers plugins that make your edit as quick and easy as possible.

2. 下载并运行 JOSM 下载适用于你操作系统的 JOSM(约 365 MB)并运行它。JOSM 是一款基于 Java 的 OSM 编辑器应用,是查询和编辑 OSM 数据的强大工具。虽然存在更简单的浏览器内编辑器,但 JOSM 提供的插件能让你的编辑过程尽可能快速且简便。


3. Download OSM Data Press Ctrl+Shift+↓ (or ⌘+Shift+↓ on Mac) to open the Download dialog. Determine your area of interest (AOI). It should be somewhere you’re familiar with, no larger than a few city blocks. Locate your AOI on the map. You can pan the map with ctrl+click dragging and zoom in by scrolling. Click and drag to create a box around your AOI. Click ⬇️ Download. If this fails, your AOI was probably too large. Choose a smaller AOI and try again.

3. 下载 OSM 数据 按下 Ctrl+Shift+↓(Mac 上为 ⌘+Shift+↓)打开下载对话框。确定你的目标区域 (AOI)。它应该是你熟悉的地方,范围不要超过几个街区。在地图上定位你的 AOI。你可以通过按住 Ctrl 并拖动鼠标来平移地图,通过滚动鼠标滚轮来缩放。点击并拖动以在你的 AOI 周围创建一个方框。点击 ⬇️ 下载。如果失败,可能是因为你的 AOI 范围太大。请选择一个较小的区域再试一次。


4. Filter Irrelevant OSM Data Now we’ll filter the OSM data to only show shops and amenities that don’t have a website. Find the Filter panel on the right side of the screen. Click the + icon to open the Filter dialog. Copy/paste the following query into the Search string text field: name=* ((amenity=* "addr:housenumber"=*) | shop=*) -website=* -"contact:website"=* Click Submit filter. Check E, uncheck H, and check I in the Filter panel. You should now only see the relevant places in your AOI.

4. 过滤无关的 OSM 数据 现在我们将过滤 OSM 数据,只显示没有网站的商店和设施。找到屏幕右侧的“过滤”(Filter) 面板。点击 + 图标打开过滤对话框。将以下查询语句复制并粘贴到“搜索字符串”(Search string) 文本框中: name=* ((amenity=* "addr:housenumber"=*) | shop=*) -website=* -"contact:website"=* 点击“提交过滤”(Submit filter)。在过滤面板中,勾选 E,取消勾选 H,并勾选 I。现在你应该只能看到 AOI 中相关的地点了。


5. Set Up the Website Wizard Plugin Press F12 (or ⌘+, on Mac) to open JOSM’s Preferences dialog. Click the 🧩 puzzle piece icon on the left side to open the Plugins config. Click ⬇️ Download list. Scroll down the list of plugins until you see 🌐 WebsiteWizard. Check its checkbox. Click OK to install it.

5. 设置 Website Wizard 插件 按下 F12(Mac 上为 ⌘+,)打开 JOSM 的首选项对话框。点击左侧的 🧩 拼图图标以打开插件配置。点击 ⬇️ 下载列表。向下滚动插件列表,直到看到 🌐 WebsiteWizard。勾选其复选框。点击“确定”进行安装。


6. Search for an Official Website Click the 🌐 icon on the left side of the screen to show the 🌐 Website Wizard panel on the right side of the screen. Type your AOI’s city and/or neighborhood into Website Wizard’s Search Prefix text field. Click a shop or amenity in your AOI. Click Search to open DuckDuckGo in your default browser with the query autofilled as the Search Prefix + the place’s name. Determine if any of the search results represent the official website for your place. Do NOT use search results for social media profiles, review sites, or other business aggregators. When in doubt, don’t use it. If you don’t find one, just repeat steps 3 to 5 with another place in your AOI. Copy/paste the official website URL into the Website URL text field. Click Save. If you make a mistake, you can always press ctrl+z (⌘+z on Mac) to undo it.

6. 搜索官方网站 点击屏幕左侧的 🌐 图标,在屏幕右侧显示 🌐 Website Wizard 面板。在 Website Wizard 的“搜索前缀”(Search Prefix) 文本框中输入你 AOI 所在的城市和/或社区。点击你 AOI 中的一家商店或设施。点击“搜索”(Search),这将在你的默认浏览器中打开 DuckDuckGo,并自动填充“搜索前缀 + 地点名称”作为查询词。判断搜索结果中是否有该地点的官方网站。请勿使用社交媒体主页、评论网站或其他商业聚合平台的链接。如有疑问,请勿使用。如果没有找到,只需对 AOI 中的另一个地点重复步骤 3 到 5。将官方网站 URL 复制并粘贴到“网站 URL”(Website URL) 文本框中。点击“保存”(Save)。如果操作失误,可以随时按下 ctrl+z(Mac 上为 ⌘+z)撤销。


7. Upload Your Changeset Press Ctrl+Shift+↑ (or ⌘+Shift+↑ on Mac) to open the Upload dialog. Type Add website to <city and/or neighborhood> shops and amenities in the text field labeled “Provide a brief comment…”. Select survey in the dropdown labeled “Specify the data source…”. Click Upload Changes, which will open OSM in your browser. Enter your OSM credentials. Click Log In. Click Authorize to allow JOSM to create the changeset for you.

7. 上传你的变更集 按下 Ctrl+Shift+↑(Mac 上为 ⌘+Shift+↑)打开上传对话框。在标有“提供简短评论…”(Provide a brief comment…) 的文本框中输入 Add website to <城市和/或社区> shops and amenities。在标有“指定数据源…”(Specify the data source…) 的下拉菜单中选择 survey。点击“上传变更”(Upload Changes),这将在你的浏览器中打开 OSM。输入你的 OSM 凭据。点击“登录”(Log In)。点击“授权”(Authorize) 以允许 JOSM 为你创建变更集。


Conclusion 🎉🎊🥳 Congratulations- you just made OSM a little bit better for everyone! Plus you got a preview of some of the cool things you can do with JOSM and OSM data. So what next? You could keep going and add a website tag to every place in your AOI. For example, I quickly added 66 new website tags in Seattle’s Wallingford neighborhood in this changeset. Or you could modify the filter to show places in your AOI with a website tag but no phone tag. Then you could add the phone tag based on info from the website. Or you could spread the word about OSM and Website Wizard! The United States alone has more than 1 million shops. So if we want to put them all on the map, we’ll need to get many more people to help. No matter what’s next, feel proud for pushing OSM a little closer toward becoming the world’s greatest map!

结语 🎉🎊🥳 恭喜你——你刚刚让 OSM 为每个人变得更好了一点!此外,你还体验了使用 JOSM 和 OSM 数据可以完成的一些酷炫操作。接下来做什么呢?你可以继续为 AOI 中的每个地点添加网站标签。例如,我在这个变更集中快速为西雅图 Wallingford 社区的 66 个地点添加了新网站标签。或者,你可以修改过滤器,显示 AOI 中有网站标签但没有电话标签的地点,然后根据网站信息添加电话标签。你也可以向他人宣传 OSM 和 Website Wizard!仅美国就有超过 100 万家商店,如果我们想把它们全部标注在地图上,就需要更多人的帮助。无论接下来做什么,都请为你让 OSM 向成为世界最棒地图的目标迈进了一步而感到自豪!