https://github.com/dvsa/ftts-stub-google-geocoding
https://github.com/dvsa/ftts-stub-google-geocoding
Last synced: 9 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/dvsa/ftts-stub-google-geocoding
- Owner: dvsa
- License: mit
- Created: 2021-03-12T11:27:50.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2022-11-24T10:12:15.000Z (over 3 years ago)
- Last Synced: 2025-02-08T22:28:35.026Z (over 1 year ago)
- Language: TypeScript
- Size: 379 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: license.md
Awesome Lists containing this project
README
# Google Geocoding Stub service
API wrapping Geocoding for testing purposes
- **GET Coordinates from search term** *
*Error triggers:
* `errorInternalServer`
* `errorOverDailyLimit`
* `errorOverQueryLimit`
* `errorInvalidRequestError`
* `errorUnknownError`
*Warning triggers:
* `warningZeroResults`
* `warningRequestDenied`
## Build
Install node modules:
```
npm install
```
Compile the ts source:
```
npm run build
```
## Deploy
Deploy via VSCode with the Azure Functions extension
## Tests
All tests are housed in `tests/*test.ts` files alongside the modules under test
Run all the tests:
```
npm run test
```
Watch the tests:
```
npm run test:watch
```
Run test coverage:
```
npm run test:coverage
```
See the generated `coverage` directory for the results