Skip to content

yurii-budkevych/technical-assignment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 

Repository files navigation

Table of contents

General info

This project is a simple service which fetches data from data.cityofnewyork.us and returns it processed. So far it has 1 GET endpoint which takes coordinates and radius and return all trees in the following radius.

Links

Raw data set: https://data.cityofnewyork.us/resource/5rq2-4hqu.json

Description of data set: https://data.cityofnewyork.us/Environment/2015-Street-Tree-Census-Tree-Data/uvpi-gqnh

Paths

URL Method Description
http://localhost:8080/serivce/nearby-trees?x=*y=*radius=* GET Returns all trees in the radius

Examples

Input:

  • X and Y of the center point, radius in meters for the look up.

Output:

  • Aggregation by common name

Example of the expected output: http://localhost:8080/service/nearby-trees?X=1052594.02767&Y=181149.472069&radius=1000

{
	"silver maple": 1,
	"honeylocust": 1,
	"Norway maple": 2,
	"swamp white oak": 1
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors