File tree Expand file tree Collapse file tree
src/server/plugins/map/routes Expand file tree Collapse file tree Original file line number Diff line number Diff 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 */
You can’t perform that action at this time.
0 commit comments