1.0.6 • Published 7 years ago

vvv-searchform-widget v1.0.6

Weekly downloads
2
License
ISC
Repository
-
Last release
7 years ago

Retrieve Booking Widget

Retrieve booking widget to be used for PHP bookings

Usage

Start the development server with this command:

npm dev

Setup

npm install

Configurations

endpoint:

pickup-country:

  • Starting pickup country
  • example: AU,CA,NZ
  • default: AU

pickup-date: pickup-time: return-date: return-time: pickup-name: return-name:

  • To be used for modify booking
  • not required

pickup-coordinate: return-coordinate:

  • coordinates with location type
  • example (-35.34620629999999,149.09972800000003,1)
  • syntax (Latitude,Longitude,locationType)
  • LocationType: isAirport=1, nonAirport=0

residency:

  • Driver residency
  • default: Detects current country user is in

driverAge:

  • Driver age
  • default: 30-69

apiUrl:

  • vvv API url
  • required

apiVersion:

  • vvv API Version
  • required

token:

  • vvv API Key
  • required

s3Url:

  • s3 URL for images
  • required

carTrawlerUrl:

  • Car Trawler url for redirect
  • required

siteClientId:

  • Site Client ID
  • different for each vroom site
  • required

googleApiKey:

  • Google places API Key
  • Required

Compile

npm run build

Linter

Always validate your code before git commit.
use command npm run lint to validate the code

Example

Example implementation can be seen in index.html

TODO

Lessen configurations and add env test/prod instead