adriano-sena/buzzvel-test

There is no license information available for the latest version (v1.0.0) of this package.

Project created for a technical test of an interview on Buzzvel

v1.0.0 2021-10-20 00:37 UTC

This package is auto-updated.

Last update: 2024-04-20 06:59:15 UTC


README

Repository created for technical testing on Buzzvel

This repository was created to delivery a package able to performs a HTTP request to the Buzzvel endpoint, procces the JSON data and return to the user a list of hotels ordered by the selected search critery(price or proximity).

Instalation

composer require adriano-sena/buzzvel-test

Configuration

For configuration just use the composer install command to get all the dependencies needed to run the package.

composer install

Usage

Use the Search::getNearbyHotels( $latitude, $longitude, $orderby ) to get a list of hotels orderred by the $orderby values: "pricepernight" or "proximity".

Mandatory parameters:

● $latitude ● $longitude Optional parameters:

● $orderby // Order by parameter should interpret one of the following values “proximity” or “pricepernight”

If the $orderby parameter is not defined when calling the method, we’re expecting to get the list ordered by proximity.

History

  • v1.0.0
    • Initial version (olny the basic funtionality to get the formated hotels list)

Meta

Adriano Sena – @@NanoSena1

Contributing

  1. Make a fork of the project (https://github.com/yourname/yourproject/fork)
  2. Create a branch (git checkout -b feature/fooBar)
  3. Make a commit (git commit -am 'Add some fooBar')
  4. Push (git push origin feature/fooBar)
  5. Create a new Pull Request