Skip to content

omelinb/geolocation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Description

Test application with api for getting people at a specific distance(30km) and for getting person's profile.

System Dependencies

  • Ruby 2.5.3 (install with rbenv)
  • Rubygems
  • Bundler (gem install bundler)
  • PostgreSQL

Database creation

Add data about your pguser in /config/database.yml:
  host: localhost
  user: pg_user
  password: pg_password

  • rails db:create
  • rails db:migrate
  • rails db:seed

API

  • /users/?coords=latitude,longitute   GET Get lisf of people closer than 30km
  • /users/1   GET Get person's profile

Examples

curl http://localhost:3000/users/?coords=11.023666,12.326888
curl http://localhost:3000/users/6

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published