-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
67aa023
commit a5ff688
Showing
1 changed file
with
55 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
## INTRODUCTION | ||
|
||
Trufi’s General Transit Feed Specification (GTFS) tool allows you to create a map for Trujillo city. You can also send your route data to Google Maps, Open Trip Planner, OpenStreetMap, and other public atlases to keep navigation databases updated. | ||
|
||
Follow the steps below to create a public transportation map using our tool. | ||
|
||
### Steps | ||
|
||
+ Step 1: Download [Trujillo-OMUS]([https://github.com/trufi-association/trufi-gtfs-builder](https://github.com/trufi-association/Trujillo-OMUS)) | ||
|
||
+ Step 2: Download three tools: [Nodsjs](https://nodejs.org/en), [Git]( https://github.com/git-guides/install-git), and a text code editor. We recommend [Visual Studio (VS) Code]( https://code.visualstudio.com/). | ||
|
||
+ Step 3: Click on “code” and copy the HTTPS URL. | ||
You may choose to download GitHub Desktop and select the “GitHub CLI”. | ||
There is a login required to use this method. There is no login required to use the HTTPS method. | ||
|
||
+ Step 4: Type Git clone and the HTTPS URL into the Git PowerShell command line. | ||
|
||
+ Step 5: Find the Trufi GFTS folder on your device. Right-click it and copy the folder. | ||
|
||
+ Step 6: Find the VS Code folder. Paste the Trufi folder inside it. | ||
|
||
+ Step 7: Type npm install in the console to install all node dependencies. | ||
|
||
+ Step 8: Under the output files set GFTS to true. | ||
|
||
+ Step 9: Run the application in the VS Code terminal. Type: Node - .\examples\ your folder \index\js. | ||
|
||
In your output folder, there is a new README file. You can copy and paste its contents into a markdown viewer to see your new map and errors. | ||
|
||
|
||
## Optional Steps | ||
|
||
### Test a sample map | ||
|
||
There are route examples inside the folder that allow you to visualize how the application works. | ||
|
||
- [ ] Work inside an index, run, and type node -.\examples\the example you want to work inside\index.js | ||
|
||
- [ ] Test one of the sample maps, open its README file. Copy the markdown text. | ||
Navigate to a markdown reader and paste the text. Examine the output. | ||
Here, you can see the output layout and learn how to fix errors. | ||
|
||
### Customize your application | ||
|
||
To specify routes, operation times, and other local options, you can change the following elements: | ||
|
||
- [ ] Add or update the "agencytimezone" element. Use it to add your transportation agency’s name. You may also use the default calendar option to set transportation operation times. | ||
|
||
- [ ] Every city does not have stops included in its routes. The “fakestops” option allows you to create fake stops so that your output is not empty. If you live in a place without designated bus stops, select false under "fakestops" to create fake ones. The default interval is 100 meters. However, if you would like more or fewer stops, change the interval. | ||
|
||
- [ ] To build or add streets, type and inside the “return.stops.join" element. | ||
|
||
- [ ] You have a section in your code called “stops”. If a stop name is unknown, type unknown in this section so that the map does not output an incorrect street name. | ||
|