Skip to content

Commit

Permalink
Adds shapes example page (EN only)
Browse files Browse the repository at this point in the history
This commit adds a new page for shapes examples along with 8 images (added to the EN assets folder) and a modification to mkdocs.yml to update navigation menu
  • Loading branch information
Sergiodero committed Dec 4, 2024
1 parent dfb44c2 commit 23ab272
Show file tree
Hide file tree
Showing 10 changed files with 39 additions and 0 deletions.
Binary file added docs/en/assets/shapes-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/en/assets/shapes-2a.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/en/assets/shapes-2b.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/en/assets/shapes-3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/en/assets/shapes-4a.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/en/assets/shapes-4b.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/en/assets/shapes-5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/en/assets/shapes-6.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
38 changes: 38 additions & 0 deletions docs/en/documentation/schedule/examples/shapes.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# Shapes

## Shapes Data Guidance

The data contained in shapes.txt file plays a critical role in the representation of transit services. Properly constructed shapes improve the accuracy of trip visualizations in trip planning applications, ensuring a seamless experience for riders. The following recommended practices provide guidance on creating high-quality shape data that accurately represents vehicle movements and aligns with physical travel paths.

1. When the travel path between stops is not a straight line, avoid defining the shape with only two points. Ensure the shape accurately reflects the vehicle's travel path.

<img class="center" width="1500" height="100%" src="../../../../assets/shapes-1.png">


2. Ensure that shapes start from the origin station and end at the destination station. Avoid shapes that are too short or too long.

<img class="center" width="1500" height="100%" src="../../../../assets/shapes-2a.png">

<img class="center" width="1500" height="100%" src="../../../../assets/shapes-2b.png">

3. Within a shape defined by a single shape_id, avoid illogical backtracking or unnecessary point reversals.

<img class="center" width="1500" height="100%" src="../../../../assets/shapes-3.png">

4. Ensure that shapes align with the path that vehicles travel along in the WGS84 coordinate system, avoid offsets caused by differing coordinate systems.

- For roadway services (e.g., bus), alignments should follow the centerline of the roadway the vehicle travels on. This may be either the centerline of the street if there are no designated lanes or the centerline of the travel direction side if lanes are specified.

<img class="center" width="1500" height="100%" src="../../../../assets/shapes-4a.png">

- For rail services (e.g., subway, train, light rail), shapes should follow the tracks that the train travels on. If a trip does not always travel on a specific track in certain areas and multiple tracks exist, ensure the shape stays within the range of tracks on which the train may operate.

<img class="center" width="1500" height="100%" src="../../../../assets/shapes-4b.png">

5. When the vehicle travels along curves, shape points should be dense enough to allow for a visually smooth presentation for riders.

<img class="center" width="1500" height="100%" src="../../../../assets/shapes-5.png">

6. Alignments should not “jag” to a curb stop, platform, or boarding location.

<img class="center" width="1500" height="100%" src="../../../../assets/shapes-6.png">
1 change: 1 addition & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -412,6 +412,7 @@ nav:
- Frequencies: documentation/schedule/examples/frequencies.md
- Pathways: documentation/schedule/examples/pathways.md
- Routes, Stops & Trips: documentation/schedule/examples/routes-stops-trips.md
- Shapes: documentation/schedule/examples/shapes.md
- Text-to-speech: documentation/schedule/examples/text-to-speech.md
- Transfers: documentation/schedule/examples/transfers.md
- Translations: documentation/schedule/examples/translations.md
Expand Down

0 comments on commit 23ab272

Please sign in to comment.