Giter VIP home page Giter VIP logo

atmlocator's Introduction

#ATM Locator Simple web service to search in a file downloaded from dropbox for a matching ATM.

####ATMLocatorController

  • List getATMs(ATMLocatorRequest atmLocatorRequest)

    Receives an ATMLocatorRequest object with the JSON input received.
    Assigns the values from the request to a reference ATM object to be passed to the service to retrieve a list of matching ATMs.
    returns an arrayList of the ATMs that matched the search criteria


####ATMLocatorRequest has the fields to be matched to the ATM JSON following the fields:

{
   "address": {
   	"street": "",
   	"housenumber": "",
   	"postalcode": "",
   	"city": "",
   	"geoLocation": {
   		"lat": "",
   		"lng": ""
   	}
   },
   "distance": 0,
   "type": ""
} 

####ATM, Address, Geolocation Model objects to represent the JSON request


####ATMLocatorService

  • List getMatchingATMs(ATM referenceATM)

Receives a reference ATM to match to the ATMs list and returns a list of all matching ATMs

  • boolean matchATMs(ATM referenceATM, ATM atm)

returns if the reference ATM is equal to the ATM being checked

  • boolean matchDistance(ATM referenceATM, ATM atm)

returns true if the field is empty on the reference ATM or if it matches to the ATM being compared, false in case it doesn't match

  • boolean matchType(ATM referenceATM, ATM atm)

returns true if the field is empty on the reference ATM or if it matches to the ATM being compared, false in case it doesn't match

  • boolean matchlatitude(ATM referenceATM, ATM atm)

returns true if the field is empty on the reference ATM or if it matches to the ATM being compared, false in case it doesn't match

  • boolean matchLongitude(ATM referenceATM, ATM atm)

returns true if the field is empty on the reference ATM or if it matches to the ATM being compared, false in case it doesn't match

  • boolean matchCity(ATM referenceATM, ATM atm)

returns true if the field is empty on the reference ATM or if it matches to the ATM being compared, false in case it doesn't match

  • boolean matchPostalCode(ATM referenceATM, ATM atm)

returns true if the field is empty on the reference ATM or if it matches to the ATM being compared, false in case it doesn't match

  • boolean matchHouseNumber(ATM referenceATM, ATM atm)

returns true if the field is empty on the reference ATM or if it matches to the ATM being compared, false in case it doesn't match

  • boolean matchStreet(ATM referenceATM, ATM atm)

returns true if the field is empty on the reference ATM or if it matches to the ATM being compared, false in case it doesn't match


####ATMMapper

  • static List getATMs()

Calls the object mapper to retrieve the list of ATMs if there wasn't a cached instance

  • static List atmObjectMapper()

Retrieves a list of ATMs from Dropbox in JSON formatting then maps it to a list of ATMs and returns it

atmlocator's People

Contributors

loui-molina avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.