Click or drag to resize

TireInformationServiceSimpleSearch Method

OFV Kjøretøydata service

Simple search for vehicle.

Returns list of brand, model, modelsplit and variant that match search string applied.

Namespace:  OfvVehicleData.Service
Assembly:  OfvVehicleData.Service (in OfvVehicleData.Service.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public DTO SimpleSearch(
	UserDTO user,
	string searchString,
	int vehicleGroup,
	bool data,
	string format
)

Parameters

user
Type: OfvService.DTO.LoginUserDTO
UserDTO
searchString
Type: SystemString
Freetext search string.
vehicleGroup
Type: SystemInt32
Vehiclegroup code defines which group to searh in.
data
Type: SystemBoolean
if set to true result includes predefined technical data, otherwise no technical data.
format
Type: SystemString
json/xml - which format result will be delivered in.

Return Value

Type: DTO
Return a List of BrandDTO, status of request and a description that gives any exceptions.
Examples
Here`s an example on how to search for vehicles by freetext search.

Data set to true, which means result includes predefined technical data for each vehicle.

Input
{
    "user" : {
        "username" : "my@email.com",
        "token" : "b0d7bfc7c0afd3092d50df077110783c",
        "ipAddress" : "192.168.1.254"
    },
    "searchString" : "Audi Q7",
    "vehicleGroup" : "101",
    "data" : true
}
Output without technical data (intended for fast search)
{
    "success" : true,
    "data" : [{
            "__type" : "br:vehicle",
            "id" : 134,
            "nm" : "Audi",
            "moLs" : [{
                    "id" : 527,
                    "nm" : "Q7",
                    "vaLs" : [{
                            "id" : 189731,
                            "nm" : "3,0 TDI 204 Hk quattro tiptronic 5-seter"
                        }, {
                            "id" : 189733,
                            "nm" : "3,0 TDI 204 Hk quattro tiptronic 6-seter"
                        }, {
                            "id" : 189732,
                            "nm" : "3,0 TDI 204 Hk quattro tiptronic 7-seter"
                        }, {
                            "id" : 189734,
                            "nm" : "3,0 TDI 245 Hk quattro tiptronic 5-seter"
                        }, {
                            "id" : 189736,
                            "nm" : "3,0 TDI 245 Hk quattro tiptronic 6-seter"
                        }, {
                            "id" : 189735,
                            "nm" : "3,0 TDI 245 Hk quattro tiptronic 7-seter"
                        }, {
                            "id" : 189737,
                            "nm" : "3,0 TDI 245 Hk quattro tiptronic clean diesel "
                        }, {
                            "id" : 189739,
                            "nm" : "3,0 TDI 245 Hk quattro tiptronic clean diesel 6-s"
                        }, {
                            "id" : 189738,
                            "nm" : "3,0 TDI 245 Hk quattro tiptronic clean diesel 7-s"
                        }, {
                            "id" : 189725,
                            "nm" : "3,0 TFSI 272 hk quattro tiptronic 5-seter "
                        }, {
                            "id" : 189727,
                            "nm" : "3,0 TFSI 272 hk quattro tiptronic 6-seter"
                        }, {
                            "id" : 189726,
                            "nm" : "3,0 TFSI 272 hk quattro tiptronic 7-seter"
                        }, {
                            "id" : 189728,
                            "nm" : "3,0 TFSI 333 hk quattro tiptronic 5-seter"
                        }, {
                            "id" : 189730,
                            "nm" : "3,0 TFSI 333 hk quattro tiptronic 6-seter"
                        }, {
                            "id" : 189729,
                            "nm" : "3,0 TFSI 333 hk quattro tiptronic 7-seter"
                        }, {
                            "id" : 189740,
                            "nm" : "4,2 TDI quattro tiptronic 5-seter"
                        }, {
                            "id" : 189742,
                            "nm" : "4,2 TDI quattro tiptronic 6-seter"
                        }, {
                            "id" : 189741,
                            "nm" : "4,2 TDI quattro tiptronic 7-seter"
                        }
                    ]
                }
            ]
        }
    ]
}
Output with technical data (intended for listing)
{
    "success" : true,
    "data" : [{
            "__type" : "br:vehicle",
            "id" : 134,
            "nm" : "Audi",
            "moLs" : [{
                    "id" : 527,
                    "nm" : "Q7",
                    "vaLs" : [{
                            "id" : 189725,
                            "nm" : "3,0 TFSI 272 hk quattro tiptronic 5-seter ",
                            "ve" : {
                                "thdGrpLs" : [{
                                        "id" : 0,
                                        "thdLs" : [{
                                                "id" : 0,
                                                "nm" : "Bensin",
                                                "mapCode" : "Fuel",
                                                "val" : "B"
                                            }, {
                                                "id" : 0,
                                                "nm" : "Sport Utility Vehicle",
                                                "mapCode" : "Chassis",
                                                "val" : "SUV"
                                            }, {
                                                "id" : 702,
                                                "nm" : "Antall dører",
                                                "mapCode" : "702",
                                                "val" : "5"
                                            }, {
                                                "id" : 703,
                                                "nm" : "Antall sitteplasser",
                                                "mapCode" : "703",
                                                "val" : "5"
                                            }, {
                                                "id" : 202,
                                                "nm" : "Sylindre antall",
                                                "mapCode" : "202",
                                                "val" : "6"
                                            }, {
                                                "id" : 201,
                                                "nm" : "Sylindervolum",
                                                "mapCode" : "201",
                                                "val" : "2995",
                                                "valTp" : "cm3"
                                            }, {
                                                "id" : 101,
                                                "nm" : "Motorytelse total",
                                                "mapCode" : "101",
                                                "val" : "200",
                                                "valTp" : "kW"
                                            }, {
                                                "id" : 102,
                                                "nm" : "Motorytelse total",
                                                "mapCode" : "102",
                                                "val" : "272",
                                                "valTp" : "hk"
                                            }, {
                                                "id" : 104,
                                                "nm" : "Drivhjul total",
                                                "mapCode" : "104",
                                                "val" : "A"
                                            }, {
                                                "id" : 504,
                                                "nm" : "Gir, antall",
                                                "mapCode" : "504",
                                                "val" : "6"
                                            }, {
                                                "id" : 0,
                                                "nm" : "Automat",
                                                "mapCode" : "Transmission",
                                                "val" : "AUT"
                                            }, {
                                                "id" : 801,
                                                "nm" : "Lengde",
                                                "mapCode" : "801",
                                                "val" : "5080",
                                                "valTp" : "mm"
                                            }, {
                                                "id" : 1001,
                                                "nm" : "Egenvekt uten fører",
                                                "mapCode" : "1001",
                                                "val" : "2220",
                                                "valTp" : "kg"
                                            }, {
                                                "id" : 305,
                                                "nm" : "Forbruk snitt",
                                                "mapCode" : "305",
                                                "val" : "1.07",
                                                "valTp" : "l\/mil"
                                            }, {
                                                "id" : 306,
                                                "nm" : "CO2-utslipp",
                                                "mapCode" : "306",
                                                "val" : "249",
                                                "valTp" : "g\/km"
                                            }, {
                                                "id" : 307,
                                                "nm" : "NOx-utslipp",
                                                "mapCode" : "307",
                                                "val" : "48.7",
                                                "valTp" : "mg\/km"
                                            }, {
                                                "id" : 0,
                                                "nm" : "Norske kroner",
                                                "mapCode" : "PriceImport",
                                                "val" : "1052000",
                                                "valTp" : "NOK"
                                            }
                                        ]
                                    }
                                ],
                                "equGrpLs" : [{
                                        "id" : 0,
                                        "equLs" : [{
                                                "id" : 9,
                                                "nm" : "Metallic lakk",
                                                "cnt" : 0,
                                                "prc" : {
                                                    "id" : 0,
                                                    "val" : 11360,
                                                    "valTp" : "NOK"
                                                },
                                                "std" : false
                                            }
                                        ]
                                    }
                                ],
                                "seg" : {
                                    "id" : 0,
                                    "nm" : "Terrengbiler",
                                    "sNm" : "-"
                                }
                            }
                        }
                    ]
                }
            ]
        }, {
            "__type" : "br:vehicle",
            "id" : 134,
            "nm" : "Audi",
            "moLs" : [{
                    "id" : 527,
                    "nm" : "Q7",
                    "vaLs" : [{
                            "id" : 189726,
                            "nm" : "3,0 TFSI 272 hk quattro tiptronic 7-seter",
                            "ve" : {
                                "thdGrpLs" : [{
                                        "id" : 0,
                                        "thdLs" : [{
                                                "id" : 0,
                                                "nm" : "Bensin",
                                                "mapCode" : "Fuel",
                                                "val" : "B"
                                            }, {
                                                "id" : 0,
                                                "nm" : "Sport Utility Vehicle",
                                                "mapCode" : "Chassis",
                                                "val" : "SUV"
                                            }, {
                                                "id" : 702,
                                                "nm" : "Antall dører",
                                                "mapCode" : "702",
                                                "val" : "5"
                                            }, {
                                                "id" : 703,
                                                "nm" : "Antall sitteplasser",
                                                "mapCode" : "703",
                                                "val" : "7"
                                            }, {
                                                "id" : 202,
                                                "nm" : "Sylindre antall",
                                                "mapCode" : "202",
                                                "val" : "6"
                                            }, {
                                                "id" : 201,
                                                "nm" : "Sylindervolum",
                                                "mapCode" : "201",
                                                "val" : "2995",
                                                "valTp" : "cm3"
                                            }, {
                                                "id" : 101,
                                                "nm" : "Motorytelse total",
                                                "mapCode" : "101",
                                                "val" : "200",
                                                "valTp" : "kW"
                                            }, {
                                                "id" : 102,
                                                "nm" : "Motorytelse total",
                                                "mapCode" : "102",
                                                "val" : "272",
                                                "valTp" : "hk"
                                            }, {
                                                "id" : 104,
                                                "nm" : "Drivhjul total",
                                                "mapCode" : "104",
                                                "val" : "A"
                                            }, {
                                                "id" : 504,
                                                "nm" : "Gir, antall",
                                                "mapCode" : "504",
                                                "val" : "6"
                                            }, {
                                                "id" : 0,
                                                "nm" : "Automat",
                                                "mapCode" : "Transmission",
                                                "val" : "AUT"
                                            }, {
                                                "id" : 801,
                                                "nm" : "Lengde",
                                                "mapCode" : "801",
                                                "val" : "5080",
                                                "valTp" : "mm"
                                            }, {
                                                "id" : 1001,
                                                "nm" : "Egenvekt uten fører",
                                                "mapCode" : "1001",
                                                "val" : "2250",
                                                "valTp" : "kg"
                                            }, {
                                                "id" : 305,
                                                "nm" : "Forbruk snitt",
                                                "mapCode" : "305",
                                                "val" : "1.07",
                                                "valTp" : "l\/mil"
                                            }, {
                                                "id" : 306,
                                                "nm" : "CO2-utslipp",
                                                "mapCode" : "306",
                                                "val" : "249",
                                                "valTp" : "g\/km"
                                            }, {
                                                "id" : 307,
                                                "nm" : "NOx-utslipp",
                                                "mapCode" : "307",
                                                "val" : "48.7",
                                                "valTp" : "mg\/km"
                                            }, {
                                                "id" : 0,
                                                "nm" : "Norske kroner",
                                                "mapCode" : "PriceImport",
                                                "val" : "1064000",
                                                "valTp" : "NOK"
                                            }
                                        ]
                                    }
                                ],
                                "equGrpLs" : [{
                                        "id" : 0,
                                        "equLs" : [{
                                                "id" : 9,
                                                "nm" : "Metallic lakk",
                                                "cnt" : 0,
                                                "prc" : {
                                                    "id" : 0,
                                                    "val" : 11360,
                                                    "valTp" : "NOK"
                                                },
                                                "std" : false
                                            }
                                        ]
                                    }
                                ],
                                "seg" : {
                                    "id" : 0,
                                    "nm" : "Terrengbiler",
                                    "sNm" : "-"
                                }
                            }
                        }
                    ]
                }
            ]
        }, 
        ...............
        ...............
    ]
}
See Also