From 6b7ee38499e09e4f7d839987c65394f03026b762 Mon Sep 17 00:00:00 2001 From: mmmatthew Date: Wed, 29 May 2019 09:22:42 +0200 Subject: [PATCH] Add NYC location https://github.com/water-fountains/proximap/issues/23 --- config/locations.js | 10 ++++++++++ server/common/swagger/Api.yaml | 4 ++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/config/locations.js b/config/locations.js index 5cfaae30..7eb786db 100644 --- a/config/locations.js +++ b/config/locations.js @@ -45,5 +45,15 @@ export const locations = { "lngMax": 8.33810806274414 }, "operator_qid": 'undefined' + }, + "us-nyc": { + name: 'New York', + "bounding_box": { + "latMin": 40.643135583312805, + "lngMin": -74.13848876953125, + "latMax": 40.852254338121625, + "lngMax": -73.81988525390624 + }, + "operator_qid": 'undefined' } }; diff --git a/server/common/swagger/Api.yaml b/server/common/swagger/Api.yaml index cfecec0d..81ca02fd 100644 --- a/server/common/swagger/Api.yaml +++ b/server/common/swagger/Api.yaml @@ -65,7 +65,7 @@ paths: - name: city in: query type: string - enum: [ch-zh, ch-ge, ch-bl, ch-lz] + enum: [ch-zh, ch-ge, ch-bl, ch-lz, us-nyc] example: ch-zh required: false description: name of city for which fountains are to be served @@ -106,7 +106,7 @@ paths: - name: city in: query type: string - enum: [ch-zh, ch-ge, ch-bl, ch-lz] + enum: [ch-zh, ch-ge, ch-bl, ch-lz, us-nyc] example: ch-zh required: true description: name of city for which fountains are to be served