Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
January 2010
Table of Contents
1 Overview................................................................................................................................... 3
1.1 Vehicle Codes & Descriptions ............................................................................................ 3
1.2 New Vehicle Data............................................................................................................... 3
1.3 Used Values ...................................................................................................................... 3
1.4 Private Used Values ........................................................................................................... 3
1.5 Future Values New Vehicles............................................................................................... 3
1.6 Future Values Used Vehicles ............................................................................................. 3
1.7 Images ............................................................................................................................... 3
2 Data Content............................................................................................................................. 4
2.1 Vehicle Codes .................................................................................................................... 4
2.2 Vehicle Descriptions and Hierarchy .................................................................................... 4
2.3 Model Years & Effective From To Dates ............................................................................. 5
2.4 Technical Data ................................................................................................................... 5
2.5 Dictionaries ........................................................................................................................ 6
2.5.1 Options Categories......................................................................................................... 6
2.5.2 Generic Categories ........................................................................................................ 6
2.5.3 Generic Categories and Generic Items ........................................................................... 7
2.5.4 Technical Categories & Technical Items ......................................................................... 8
2.6 Colour & Trim / Hood Combinations ................................................................................... 9
2.7 Pack Contents.................................................................................................................... 9
2.8 Option Relationships ........................................................................................................ 10
2.9 Option Rules .................................................................................................................... 10
2.10 Used Values .................................................................................................................... 11
2.11 Future Values New and Used Vehicles ............................................................................. 12
2.11.1 New Vehicles ........................................................................................................... 12
2.11.2 Data Schema Future Values New Vehicles ............................................................... 13
2.11.3 Used Vehicles .......................................................................................................... 13
2.11.4 Data Schema Future Values Used Vehicles .............................................................. 13
2.12 Codes & Descriptions Package ........................................................................................ 14
2.12.1 Model Years ............................................................................................................. 15
2.12.2 CAP Code Lookups .................................................................................................. 15
2.12.3 CAP Vehicle Sectors ................................................................................................ 16
2.12.4 CAPOnRunOut ......................................................................................................... 16
2.13 New Vehicle Data Package (NVD) ................................................................................... 17
2.13.1 NVD Editions ............................................................................................................ 17
2.13.2 NVD Prices............................................................................................................... 17
2.13.3 NVD Options ............................................................................................................ 17
2.13.4 NVD Standard Equipment......................................................................................... 17
2.13.5 NVD Technical ......................................................................................................... 17
2.13.6 Options Dictionary .................................................................................................... 18
2.13.7 Category Dictionary .................................................................................................. 18
2.13.8 Option Category to Generic Category Link ................................................................ 18
2.13.9 Option Dictionary to Generic Dictionary Link ............................................................. 18
2.13.10 Generic Dictionary .................................................................................................... 18
2.13.11 Colour Option Generic Colour Link ........................................................................... 18
2.13.12 Generic Colours ....................................................................................................... 18
2.13.13 Option Features & Benefits ....................................................................................... 18
2.13.14 Colour & Trim Periods .............................................................................................. 19
2.13.15 Colour & Trim Links .................................................................................................. 19
2.13.16 Colour & Hood Links................................................................................................. 19
2.13.17 Technical Dictionary ................................................................................................. 19
Revision 1.09 Date: 16 February 2010
Page 1
2.13.18 Technical Dictionary Data Types .............................................................................. 19
2.13.19 Technical Lookup ..................................................................................................... 19
2.13.20 Generic Status ......................................................................................................... 19
2.13.21 Pack Periods ............................................................................................................ 20
2.13.22 Pack Contents .......................................................................................................... 20
2.13.23 Option Relationship Periods ..................................................................................... 20
2.13.24 Option Rules ............................................................................................................ 20
2.13.25 Relationship Items .................................................................................................... 20
2.14 NVD Package – Current ................................................................................................... 21
2.15 Service Maintenance Repair (SMR).................................................................................. 21
2.15.1 Brake Prices ............................................................................................................. 21
2.15.2 Other Prices ............................................................................................................. 21
2.15.3 Service Prices .......................................................................................................... 22
2.15.4 Total Prices .............................................................................................................. 22
2.15.5 Tyre Prices ............................................................................................................... 22
2.16 Used Values Trade .......................................................................................................... 23
2.16.1 UsedValuesTrade ..................................................................................................... 23
2.16.2 YearLetterCode ........................................................................................................ 23
2.17 Used Values Private ......................................................................................................... 24
2.17.1 UsedValuesPrivate ................................................................................................... 24
2.18 Future Values (New Cars & Used Cars) ........................................................................... 25
2.18.1 FutureResidual ......................................................................................................... 25
2.18.2 FutureResidual_PPM ............................................................................................... 25
2.19 Images ............................................................................................................................. 26
2.19.1 NVDImages .............................................................................................................. 26
Each Database is divided into seven areas, which are updated dependant on your subscription.
1.7 Images
These are 1024x768 resolution jpeg files, stored in the database and linked a CAP ID number and
model year level.
(Format for CAR only LCV, HGV and Bike codes differ)
· Manufacturer -
This gives all of the manufacturer names each with a unique code.
· Range
This gives all model ranges, each with a unique code and a reference to the manufacturer
code to which they belong.
· Model
This gives all the models, each with a unique code and a reference to the manufacturer and
model range code to which they belong
· Derivative
This gives all the individual vehicle derivatives, each with a unique code (the CAP ID) and a
reference to the manufacturer, range and model code to which they belong. This also
provides the 20 characters CAP Code.
For the options & equipment on each vehicle an effective from and to date is also held, the example
below shows a vehicle introduced with a number of options on introduction, over time the cost of
individual options may change or they may move from cost to standard or from standard to cost. The
dates with the database allow standard and options to be selected at any point in time, to view current
vehicles only (ie can be bought new today) you would select vehicles where the effective to dates are
not set. Current options and equipment for the vehicle will also have the effective to date not set.
2002 2003
Technical data fields work in the same way as the options and standard equipment, having option
codes with a technical dictionary containing the description of the item and the type of value which is
provides, with the selectable options the value is a cost.
Dictionary Options/Equipment
1 Air Conditioning 1.8 2dr L
2 Sunroof 1 £500
3 Alloy Wheels 2 £0
4 CD Player 3 £600
5 Metallic Paint 6 £350
6 Sony CD Player 2.0 2dr GLX
7 etc…. 1 £500
2 £0
3 £0
6 £0
The items in each dictionary are also grouped into categories, the categories are themselves defined
in a category dictionary, this can be used to group options/equipment/technical items into categories.
These categories are specified as:
Each of the options categories are also linked to less specific generic categories, this allows a more
general categorisation of options if required:
These individual items in the generic dictionary also link to the option dictionary items where
appropriate, this allows the generic dictionary to be used as a method of searching vehicles for
common items and can also be used to do comparisons of vehicles on these common items. The
links back to the manufacturer specific options allow you to discover if these options are available on
a given vehicle at cost or standard or not available.
To aid with this the GenericStatus table gives a full list of generic items for each vehicle identifying if
each generic option is either:
In cases where a generic item may link to multiple options on a given vehicle it is possible that one
may be standard and one at cost, in this case the generic item would show as standard. For example
All these available options would link to the generic Alloy Wheels, the generic status of Alloy wheels
on this vehicle would be standard even though two higher spec are available at cost.
Some of these items only relate to CAR, LCV, HGV or BIKES as defined in the DictionaryTechnical
table.
In the example the Brown Leather option is dropped from 1/5/2003, the Green Leather remains only
available with Metallic Green paint.
1/4/2002 1/5/2003
Rules OO RO RA NW IN IO
Steel Wheel x
Alloy Wheel x x
Alloy Sport Wheel x
Sony CD/Radio x x
Sony Multi Changer # # x x
Multi Function Steering Wheel x
Leather Multi Function Steering Wheel x
Mini Fridge #
Aqua Paintwork x
Emerald Paintwork x
Sport Pack # #
In the example;
Only one of the three wheel type should be selected
If the multi changer is selected one of the multi function steering wheels has to be selected
If the multi changer is selected it requires the Sony CD player
The mini fridge should not be selected with the multi changer
If the sport pack is selected it includes the Alloy wheels, Sony CD and multi changer.
The sports pack includes paintwork which is included at 0 cost.
Included In (IN)
If the selected option has a ‘included in’ rule applied then all the other options in the rule should be
selected. This is the same as the ‘requires and’ rule except that in this case the individual options
costs would not be included.
Example : If ‘Sat nav + Monitor + Driver Info System’ is chosen, then separate option of ‘Driver
information system’ is included in this option price.
The rules exist to allow a system to apply the rules to a vehicle ordering type process, the rules will
reduce the possibility of the user selecting options on a vehicle that can not be sensibly ordered.
The Used Value tables contain a history of all publications that have been subscribed to. The first
step usually is to identify which publication you are wishing to value a vehicle with.
The Publish date is obtained via the ‘basetableversions’ table, however it is best to access the publish
dates via the ‘TableVersion’ view.
TableVersions – View
Field Name Description
TV_TableName Should be set to ‘dbo.UsedValuesTrade’ for Used Values
TV_PubDate Shows the date when the data was published.
TV_PubSeq Used to isolate all records for the specific publication date.
TV_CurrentFlag Is set to 1 for the latest product that has been published.
The CAP ID enables a vehicle to be isolated. To value a vehicle the Age and Mileage of the vehicle
are required.
To identify the Age of a vehicle the Year and Registration Plate are looked up. These can then be
linked via the ‘yearlettercodes’ table back to the ‘usedvaluestrade’ table (See diagram below).
Once the Year and Registration Plate have been isolated a number of records will be returned that
show the basic mileages for the vehicle, these mileages and values are consistent throughout all CAP
products for a given publication.
To accurately value a vehicle at a given mileage the ‘Used Valuations – Mileage Calculation Rules’
should be applied, these calculations are available on the CAP web site and can be used on all Used
Valuations products that CAP supply.
There are four basic valuations available – Retail, Clean, Average and Below which are supplied as
part of the Used Valuations dataset.
The Future Values table contain a history of all publications that have been subscribed to. The first
step usually is to identify which publication you are wishing to value a vehicle with.
The Publish date is obtained via the ‘basetableversions’ table, however it is best to access the publish
dates via the ‘TableVersion’ view.
TableVersions – View
Field Name Description
TV_TableName Should be set to ‘dbo.FutureResidual’ for Future Values
TV_PubDate Shows the date when the data was published.
TV_PubSeq Used to isolate all records for the specific publication date.
TV_CurrentFlag Is set to 1 for the latest product that has been published.
The FutureResidual table holds all valuations for both New and Used vehicles, which can be
accessed via the CAP ID.
Each record has a mileage (fr_mileage) and 6 monthly intervals (fr_6, fr_12, fr_18 etc) for projected
valuations, several records at different mileages build up a grid which is used as a starting point for
specific mileage and age based calculations.
To calculate a vehicle value to accurate Age and Mileages refer to the ‘Age / Mileage Calculation
Rules for Future Values’ which is available on the CAP Web site.
Once the Year and Registration Plate have been isolated a number of records will be returned for a
given CAP ID, this record set enables the creation of a residual value grid which can be used as a
basis for working out the future value of the selected vehicle.
Each record has a mileage (fr_mileage) and 6 monthly intervals (fr_6, fr_12, fr_18 etc) for projected
valuations, several records at different mileages build up a grid which is used as a starting point for
other mileage and age based calculations.
As a rule three mileages are given for a vehicle at a given age, it is possible then to work out the
specific mileage via the ‘Age / Mileage Calculation Rules for Future Values’ document which is
available on the CAP Web site.
1 - 2 Manufacturer
3 - 4 Model Name
5 - 6 Engine Size
7 - 9 Trim level
10 Number of Doors
11 Body Type
12 Fuel Type
13 Fuel Delivery
14 Transmission
15 Drive Train
16 Blank
17 Sequence
18 - 20 Blank
2.12.4 CAPOnRunOut
This table provides runout information for vehicles where the manufacturer has stock available to buy
after the vehicle has stopped being manufactured.
N – Not Available
U – Currently Unresearched
Current vehicles are vehicles which have not been discontinued or have been discontinued but are on
run out when the product is built.
2.16.2 YearLetterCode
This table provides a lookup of the registration ‘letter’ for
each year/month, this separation of the ‘registration
letter’ allows the potential for monthly valuations in the
future, currently you will see used values at month 1
and 8 up until 1999 and month 1, 3 and 9 subsequently.
2.18.1 FutureResidual
This table provides the (Monitor) future residual values
for each ID number. The year/month values are given
for used vehicles, these can be linked to the
YearLetterCodes table to lookup the ‘registration letter’.
For new vehicles (current) the year/month values will be
NULL.
2.18.2 FutureResidual_PPM
This table provides the (Monitor) pence per mile values
for each ID number. This information is supplied for
Current New Vehicles only.
The www.capnetwork.co.uk demonstration site delivers images directly from the data base re-
sampled on the fly to the required resolution and aspect.
The following code extract C# - ASP.NET from GetImage.aspx calls the sql stored procedure
which returns the image column. The width and height variables are passed as a request for the
desired image size.
sql.Connection.Open();
sql.Connection.Close();
// Create memory GDI resample image via DrawImage & Add some CAP text
Graphics grap = Graphics.FromImage(thumb);
grap.FillRectangle(new SolidBrush(Color.White), 0, 0, width, height);
grap.InterpolationMode=System.Drawing.Drawing2D.InterpolationMode.HighQualityBicubic;
grap.DrawImage(bmp,new Rectangle(0,0,width,height),
0,0,1024,768,
GraphicsUnit.Pixel,null);