Skip to content

Find the n closest users of a given array of locations

Notifications You must be signed in to change notification settings

reinhake/findnusers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

findnusers

A microservice that finds the closest locations of a given user

the server is running on https://findnclosestusers.azurewebsites.net/findNUsers and can be called by sending a GET that contains a json in the body

the json must include a user and locations parameters each having pair of cordinates

Example:

{
	"user": [0.123456,
		0.654321],
	"locations": {
		"Zero": [0.111111, 
				 0.222222],
		"One": [0.333333,
					0.444444],
		"Two": [0.555555,
					0.666666],
		"Three": [0.777777,
					0.888888]
		 }
}

returns a json with a "Key": [value] pair in the order closest to farthest

Example:

{
  "One": [
    0.29681089983017805
  ],
  "Zero": [
    0.43227531137690484
  ],
  "Two": [
    0.43227531137690484
  ],
  "Three": [
    0.695095424046224
  ]
}

About

Find the n closest users of a given array of locations

Resources

Stars

Watchers

Forks

Packages

No packages published