vvv-searchform-widget

1.0.6 • Public • Published

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:

  • Results page url
  • example: (https://booking.vroomvroomvroom.com/ca/results)
  • required

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

Readme

Keywords

none

Package Sidebar

Install

npm i vvv-searchform-widget

Weekly Downloads

1

Version

1.0.6

License

ISC

Last publish

Collaborators

  • vvv.dev.vincent