Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
379012f
feat: added needed dependencies
NivGreenstein Apr 28, 2024
32c7d8a
feat: added needed config
NivGreenstein Apr 28, 2024
85c3c0a
feat: added wgs84 to utm conversion
NivGreenstein Apr 28, 2024
a980638
feat: added wgs84 validation
NivGreenstein Apr 28, 2024
beee02e
feat: created latlon interface
NivGreenstein Apr 28, 2024
856215e
feat: created typeorm entity
NivGreenstein Apr 28, 2024
d8a17fe
feat: created init to postgresql
Apr 28, 2024
44c212a
fix: changed naming for dbConfig and added support postgresql type
Apr 28, 2024
57a7d5c
fix: added missing dependency
Apr 28, 2024
ba741b6
feat: added init and to pgsql
Apr 28, 2024
ba47443
fix: changed to access config by dependency injection
Apr 28, 2024
52f214a
fix: added db name for latLon
Apr 28, 2024
5ea8432
feat: created custom repository for latLon
Apr 28, 2024
434fde4
feat: added convertWgs84ToUTM, convertUTMToWgs84, validateTile utils
Apr 28, 2024
3798179
fix: added type
Apr 28, 2024
bd6d53f
feat: created latLon manager
Apr 28, 2024
ab6c8f5
feat: created latlon controller
Apr 28, 2024
94d4a58
feat: created latlon router
Apr 28, 2024
a0495c0
feat: inject LatLon as pgsql db entity
Apr 28, 2024
b209fc2
feat: added lat lon utils
Apr 28, 2024
32b4866
feat: added lat lon as injectable
Apr 28, 2024
6b578de
feat: added lat lon route to the api
Apr 28, 2024
e22867d
Feat: added mgrs dependency
NivGreenstein Apr 30, 2024
31243b3
fix: fix mgrs regex and accuracy typo
NivGreenstein Apr 30, 2024
40a127b
fix: changed method names
NivGreenstein Apr 30, 2024
1710777
feat: added latlon-mgrs conversions methods in the latLonManager
NivGreenstein Apr 30, 2024
e0ac403
feat: added latlon-mgrs conversions methods in the controller
NivGreenstein Apr 30, 2024
44fd7d9
feat: added latlon-mgrs conversions methods in the router
NivGreenstein Apr 30, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 16 additions & 1 deletion config/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,24 @@
},
"requestTimeout": 60000,
"properties": {
"index": "myIndex",
"index": "control_gil_v5",
"size": 3
}
},
"postgresql": {
"type": "postgres",
"host": "localhost",
"port": 5432,
"username": "postgres",
"password": "test1234",
"enableSslAuth": false,
"sslPaths": {
"ca": "",
"key": "",
"cert": ""
},
"database": "postgres",
"schema": "geocoder"
}
}
}
6 changes: 3 additions & 3 deletions openapi3.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ paths:
minimum: -180
maximum: 180
required: true
- name: "accuricy"
- name: "accuracy"
in: "query"
description: "Accuracy in digits (5 for 1 m, 4 for 10 m, 3 for 100 m, 2 for 1 km, 1 for 10 km or 0 for 100 km). Optional, default is 5."
schema:
Expand All @@ -364,7 +364,7 @@ paths:
properties:
mgrs:
type: string
pattern: ^(\d{1,2})([C-X][A-HJ-NP-Z])([A-HJ-NP-Z]{2})(\d{1,5})\s*(\d{1,5})$
pattern: ^\d{1,2}[^ABIOYZabioyz][A-Za-z]{2}([0-9][0-9])+$
400:
"$ref": "#/components/responses/BadRequest"
401:
Expand All @@ -388,7 +388,7 @@ paths:
description: "MGRS string"
schema:
type: "string"
pattern: ^(\d{1,2})([C-X][A-HJ-NP-Z])([A-HJ-NP-Z]{2})(\d{1,5})\s*(\d{1,5})$
pattern: ^\d{1,2}[^ABIOYZabioyz][A-Za-z]{2}([0-9][0-9])+$
required: true
responses:
200:
Expand Down
Loading