aboutsummaryrefslogtreecommitdiff
path: root/data/README.md
diff options
context:
space:
mode:
authorAriel Costas Guerrero <ariel@costas.dev>2025-04-20 21:37:10 +0200
committerAriel Costas Guerrero <ariel@costas.dev>2025-04-20 21:37:10 +0200
commitdfdf4a291f3a686496ed9948a31e26ef43879f19 (patch)
tree6a168d0aad2084ef32434b27d0b4ad406039e976 /data/README.md
parent3676b1d1d9216a676c7d5a40affa5b3256ca8df3 (diff)
Enhance stop data handling by adding support for multiple YAML override files and improving coordinate accuracy for various stops
Diffstat (limited to 'data/README.md')
-rw-r--r--data/README.md46
1 files changed, 46 insertions, 0 deletions
diff --git a/data/README.md b/data/README.md
new file mode 100644
index 0000000..dd1da79
--- /dev/null
+++ b/data/README.md
@@ -0,0 +1,46 @@
+# Bus Stop Overrides
+
+This file defines custom overrides for specific bus stops in YAML format.
+
+## Format
+
+```yaml
+stopId: # Numeric ID of the stop to override
+ name: # Override the name (string)
+ alternateNames: # Additional names for the stop (map)
+ key: # e.g. name used in metro maps
+ location: # Override location coordinates (map)
+ latitude: # New latitude value (float)
+ longitude: # New longitude value (float)
+ hide: # Hide the stop from the map and list (boolean)
+ amenities: # List of amenities available at this stop (list)
+ - shelter
+ - real-time display
+```
+
+## Field Descriptions
+
+- **stopId** (integer): Unique identifier of the bus stop.
+- **alternateNames** (object): Other names used in different contexts.
+ - **key** (string): Name used in a specific context, such as `metro`.
+- **location** (object):
+ - **latitude** (float): Override latitude coordinate.
+ - **longitude** (float): Override longitude coordinate.
+- **hide** (boolean): Set to `true` to exclude the stop from maps and listings.
+- **amenities** (array of strings): Amenities available at this stop, such as `shelter` or `real-time display`. For now, only those two will be supported in the app.
+
+## Example
+
+```yaml
+12345:
+ name: "Central Station"
+ alternateNames:
+ metro: "Main Hub"
+ location:
+ latitude: 40.712776
+ longitude: -74.005974
+ hide: false
+ amenities:
+ - shelter
+ - real-time display
+``` \ No newline at end of file