Automated edits/okadatsuneo
Replace "ref:gbfs" tag
Sentences are written in English/Japanese.
Replace ref:gbfs=* tag with gbfs:system_id=* and gbfs:station_id=* for HelloCycling cycle ports in Japan. /
日本のHelloCyclingのサイクルポートの ref:gbfs=* タグを gbfs:system_id=* + gbfs:station_id=* に置き換えます。
This tag was added by me during the import, and there were no specific comments when I announced the import plan in June 2023. /
このタグは私がインポート時につけたもので、2023/6にインポート計画をアナウンスした時には特に指摘はありませんでした。
Upon announcing the import of Docomo Bikeshare in December 2023, I received advice that "gbfs:system_id=* + gbfs:station_id=* is better than ref:gbfs=* in terms of searchability and extensibility." Consequently, I have adopted this tagging proposal. /
2023/12にドコモ・バイクシェアのインポートをアナウンスした時に「ref:gbfs=* よりは gbfs:system_id=* + gbfs:station_id=* の方が検索性や拡張性の面から良い」とのアドバイスがあり、この提案のタグ付けにしました。
This time, HelloCycling will also be changed to align with this tagging. /
今回、HelloCyclingの方もこのタグ付けに合わせるべく変更するものです。
Subsequent imports will use the new tags. /
これ以降のインポートでは新しいタグ付けでインポートを行います。
| Before replace | After replace | ||||
|---|---|---|---|---|---|
| tag | value | example | tag | value | example |
ref:gbfs=*
|
<system_id>:<station_id> | hellocycling:17 | gbfs:system_id=*
|
<system_id> | hellocycling |
gbfs:station_id=*
|
<station_id> | 17 | |||
Location of interest
Nodes and ways tagged with amenity=bicycle_rental and ref:gbfs=* in Japan.
OverPass Query
[out:xml][timeout:90];
{{geocodeArea:japan}}->.searchArea;
(
nw["amenity"="bicycle_rental"]["ref:gbfs"~"^hellocycling:"](area.searchArea);
);
(._;>;); out meta;
Working method
- Download the object using the query above from the over-pass server with JOSM.
- Save the data to a file named 'input.osm'.
- Convert this file to an 'output.osm' file using a Python script.
- Open the 'output.osm' file with JOSM.
- Ensure there are no problems with the data.
- Upload the data to OSM from JOSM. Add the changeset tags as follows.
Conversion script
Tag conversion python script run on Google Colaboratory linked here: https://github.com/okadatsuneo/GBFS_Import/blob/main/convert_refgbfs.ipynb
This script performs the following operations:
For nodes and ways,
- Creates "gbfs:system_id" and "gbfs:station_id" tags from the value of "ref:gbfs"
- Removes "ref:gbfs" tag
- Adds the "action=modify" attribute
Changeset tags
| Tag | value |
|---|---|
comment=*
|
Replace ref:gbfs tag with gbfs:system_id and gbfs:station_id. |
description=*
|
https://wiki.openstreetmap.org/wiki/Automated_edits/okadatsuneo#Replace_%22ref:gbfs%22_tag |
mechanical=*
|
yes |
OSM account for the process
This work will be carried out using the okadatsuneo_import account.
Schedule
Scheduled for January 2024 or later.
One-time edits.
The edits have been ended on 2024-01-02.
Where the discussion took place / Feedback
Announced on talk-ja ML and OpenStreetMap Japan Slack channel on 2023-12-25.
The feedback is two "+1" reactions on Slack.