Skip to content

Commit 95e3d2a

Browse files
Add map routes JsDoc descriptions
1 parent 534f77b commit 95e3d2a

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

src/server/plugins/map/routes/index.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ export function getRoutes(options) {
1616
}
1717

1818
/**
19+
* Proxies ordnance survey requests from the front end to api.os.com
20+
* Used for VTS map tiles, sprites and fonts by forwarding on the request
21+
* and adding the apikey and optionally an SRS (spatial reference system)
1922
* @param {MapConfiguration} options - the map options
2023
* @returns {ServerRoute<MapProxyGetRequestRefs>}
2124
*/
@@ -57,6 +60,8 @@ function mapProxyRoute(options) {
5760
}
5861

5962
/**
63+
* Proxies ordnance survey geocode requests from the front end to api.os.com
64+
* Used for the gazzeteer address lookup to find name from query strings like postcode and place names
6065
* @param {MapConfiguration} options - the map options
6166
* @returns {ServerRoute<MapGeocodeGetRequestRefs>}
6267
*/
@@ -83,6 +88,9 @@ function geocodeProxyRoute(options) {
8388
}
8489

8590
/**
91+
* Proxies ordnance survey reverse geocode requests from the front end to api.os.com
92+
* Used to find name from easting and northing points.
93+
* N.B this endpoint is currently not used by the front end but will be soon in "maps V2"
8694
* @param {MapConfiguration} options - the map options
8795
* @returns {ServerRoute<MapReverseGeocodeGetRequestRefs>}
8896
*/

0 commit comments

Comments
 (0)