Generic Tools
Last updated
Last updated
This call is designed to compare whether any item will fit into a specified car boot. Perhaps you want to see if a large parcel will fit in the boot, or you want to check if your golf clubs will fit?
The call compares the dimensions of the item you specify to the measured space of the car.
The returned json includes confirmation of both the car and the dimensions that were specified in the request.
The results
array will detail a simple Yes/No response to "will the item fit". It also details 4 positions that the item might or might not fit.
https://api.mybuggymycar.com/api/search.php?s=somethingfit&vrm=<VRM>&space=<SPACE>&width=<WIDTH>&height=<HEIGHT>&depth=<DEPTH>"
OR
https://api.mybuggymycar.com/api/search.php?s=somethingfit&carid=<CARID>&space=<SPACE>&width=<WIDTH>&height=<HEIGHT>&depth=<DEPTH>"
Counts against quota: Yes (if the car is measured)
[VRM]
can be replaced with a valid[CARID]
that can be obtained by using the Car ID Lookup queries. Note, if both are supplied, vrm will be taken in preference.YOUR_BASE64_KEY
needs to be replaced with your API key.The above command returns JSON structured like this:
This query provides two sets of pre-written text that you may wish to incorporate into your solution.
The texts explain how the results are derived and outline's some 'caveats' and limitations that your users may not be aware of.
The two texts cover Car and Buggy queries and can be recalled independently or together in either plain text or html format.
The html format incorporates class and id which would allow you to style the output to match your site.
https://api.mybuggymycar.com/api/search.php?s=about&version=<VERSION>&format=<FORMAT>
Counts against quota: No
YOUR_BASE64_KEY
needs to be replaced with your API key.The above command returns JSON structured like this:
Parameter
Type
Required?
Default
Description
carid
Integer
Yes (or VRM)
N/A
A valid carid
. The carid
corresponds to a car id that can be identified using the Car ID Lookup searches. Alternatively, use the vrm
parameter
vrm
String
Yes (or carid)
N/A
An alternative to the carid
parameter. A valid UK registered car Vehicle Registration Mark (Car Registration Number).
space
String
Optional
boot
Select which boot measurements to use. You can use the getCar
query to determine which measurements are available. Where possible, the API will substitute if measurements are unavailable. This will be advised in the response->message
and results->error_message
Options:
boot
- core boot measurements from boot floor to parcel shelf/top of rear seats
lower
- use the are below the boot floor. Where this measurement is used, the boot floor is removable. Please note that the width and depth of the lower area are used which frequently give a smaller usable area despite the height increasing.
ceiling
- uses the core boot measurements but assumes the parcel-shelf is removed and the space up the boot ceiling is usable.
max_height
- combines the height of the lower boot and ceiling. As with the lower measurement, the width and depth of the lower area are also used which frequently gives a smaller usable area despite the height increase.
seats_flat
- assumes the rear seats are folded flat
3rdboot
- if a 3rd row of seats are available, this value specifies to use the space behind the 3rd row to the height of the seats / parcel-shelf.
3rdceiling
- as with 3rd boot but extends to the height of the ceiling behind the 3rd row of seats.
width
Integer
Yes
N/A
Specify the width in cm of the item you want to fit in the car boot
height
Integer
Yes
N/A
Specify the height in cm of the item you want to fit in the car boot
depth
Integer
Yes
N/A
Specify the depth in cm of the item you want to fit in the car boot
Parameter
Type
Required?
Default
Description
version
String
Optional
both
Defines whether to return the car text, buggy text or both.
Options:
car
- returns the car text only.
buggy
- returns the buggy text only
both
- returns both the buggy and car text
format
String
Optional
text
Defines whether to return the text in plain text or in html format.
Options:
text
- returns the text in plain text format.
html
- returns the text in html format that includes class and id's to aid custom styling.