Skip to content

Ruby on Rails app to check coordinates with conditions

Notifications You must be signed in to change notification settings

hussamkurd/geocodeapp

Repository files navigation

README

Simple application to check coordinates within specific countries

Installation

After download the project you just need to make sure bundle is installed with bundle install

Start

You just need to run the rails server with

rails server -p 10524

Then you can run the api and pass the longitude and latitude to it as get veriables

http://localhost:10524/check_longlat_within_country?lat=52.520008&long=13.404954

and you will get the result as json of the status and the message

Config

you can simply identify the country list in config/gecode_config.rb

by adding countries in the RESTRICTED_COUNTRY_LOCATION array

Testing

We are using Respec as a framework to test our backend in specs folder

About

Ruby on Rails app to check coordinates with conditions

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published