Skip to content

vikaskumr/get-geo-json-features

Repository files navigation

Open street map API

This application exposes a route to get “GeoJSON features” of a location given with a geolocation box (bounding box) as input (https://wiki.openstreetmap.org/wiki/Bounding_Box). This repository contains only one module and API end point.

Installation

$ npm install

Test

# unit tests
$ npm run test

# e2e tests
$ npm run test:e2e

# test coverage
$ npm run test:cov

Swagger

Swagger is available on route {{API_HOST}}/docs. Postman collection to import is available under ${{API_HOST}}/docs-json

Environment variables

make a .env file in the root directory and place the below value

OPEN_STREET_API_URL=https://www.openstreetmap.org/api/0.6/map
NODE_ENV=development

Running the app

After configuring environment variables (in .env file) run following commands

# development
$ npm run start

# watch mode
$ npm run start:dev

# production mode
$ npm run start:prod

About

Get Geo JSON Features made with Nest Js, TypeScript,

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published