Skip to content

Commit

Permalink
Clarify documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
leonardehrenfried committed Jan 24, 2024
1 parent b2e14f2 commit 6a087d1
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/RouterConfiguration.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ A full list of them can be found in the [RouteRequest](RouteRequest.md).
|    [hideFeedId](#transmodelApi_hideFeedId) | `boolean` | Hide the FeedId in all API output, and add it to input. | *Optional* | `false` | na |
|    [tracingHeaderTags](#transmodelApi_tracingHeaderTags) | `string[]` | Used to group requests when monitoring OTP. | *Optional* | | na |
| [updaters](UpdaterConfig.md) | `object[]` | Configuration for the updaters that import various types of data into OTP. | *Optional* | | 1.5 |
| [vectorTiles](sandbox/MapboxVectorTilesApi.md) | `object` | TODO: Add short summary. | *Optional* | | na |
| [vectorTiles](sandbox/MapboxVectorTilesApi.md) | `object` | Vector tile configuration | *Optional* | | na |
| [vehicleRentalServiceDirectory](sandbox/VehicleRentalServiceDirectory.md) | `object` | Configuration for the vehicle rental service directory. | *Optional* | | 2.0 |

<!-- PARAMETERS-TABLE END -->
Expand Down
4 changes: 4 additions & 0 deletions docs/sandbox/MapboxVectorTilesApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,10 @@ The protocol and host are always read from the incoming HTTP request. If you run
a proxy then make sure to set the headers `X-Forwarded-Proto` and `X-Forwarded-Host` to make OTP
return the protocol and host for the original request and not the proxied one.

**Note:** This does _not_ change the path that OTP itself serves the tiles or `tilejson.json`
responses but simply changes the URLs listed in `tilejson.json`. The rewriting of the path
is expected to be handled by a proxy.


<h4 id="vectorTiles_layers">layers</h4>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public Optional<String> basePath() {
}

public static VectorTileConfig mapVectorTilesParameters(NodeAdapter node, String paramName) {
var root = node.of(paramName).asObject();
var root = node.of(paramName).summary("Vector tile configuration").asObject();
return new VectorTileConfig(
root
.of("layers")
Expand All @@ -65,6 +65,10 @@ public static VectorTileConfig mapVectorTilesParameters(NodeAdapter node, String
The protocol and host are always read from the incoming HTTP request. If you run OTP behind
a proxy then make sure to set the headers `X-Forwarded-Proto` and `X-Forwarded-Host` to make OTP
return the protocol and host for the original request and not the proxied one.
**Note:** This does _not_ change the path that OTP itself serves the tiles or `tilejson.json`
responses but simply changes the URLs listed in `tilejson.json`. The rewriting of the path
is expected to be handled by a proxy.
"""
)
.asString(DEFAULT.basePath)
Expand Down

0 comments on commit 6a087d1

Please sign in to comment.