To get a message with the values you need, generate it and set the fields in the same call. Everything the fields require (optional containers, list items, the CHOICE alternative) is created for you, and the result is always a valid message: a value outside its range is an error, not a broken payload.
| Content | What you get | Typical use |
|---|---|---|
MINIMAL | Only the mandatory fields, with minimal values. | The base for setting your own values (default). |
RANDOM | A typical message: random optional fields, short lists and strings. | Test data with variety. |
FULL | Every optional field present once, one item per list. | Coverage: every field of the schema appears. |
Each field is one path=value line (in the API, an {"path", "value"} object).
.:
header.stationId. Names are case-sensitive and can differ between versions (CAM v2:
stationID; CAM 2.3.1: stationId). A wrong name is answered with the valid ones at
that level.[n], counted from 0. Missing items are created:
map.intersections[0].laneSet[2].laneID=3 creates three lanes.…laneAttributes.laneType.bikeLane=….| Type | Write | Example |
|---|---|---|
| INTEGER | a number, or one of its named numbers | stationType=passengerCar (= 5) |
| Scaled number | the encoded integer, or the physical value with the unit of the schema | latitude=41.3875 degree, speedValue=13.89 m/s |
| ENUMERATED | its identifier | termination=isCancellation |
| BOOLEAN | true / false | |
| BIT STRING | 0/1 characters, or the named bits |
directionalUse={ingressPath} |
| OCTET STRING | hex | 0a1b |
| Strings | the text | name=Gran Via |
@unit in the ETSI
dictionaries: latitude and longitude in degrees, speeds in m/s, lengths in metres…). km/h are not accepted:
50 km/h = 13.89 m/s. Where there is no unit, give the encoded integer as described in the type
(e.g. HeadingValue in CDD 4.3, in 0.1 degree).curl -X POST "https://api.asn1click.com/generate" \
-H "X-Ref: _Cam_v2_3" -H "Content-Type: application/json" \
--data '{"format":"UPER","content":"MINIMAL","overrides":[
{"path":"header.stationId","value":"1234"},
{"path":"cam.camParameters.basicContainer.stationType","value":"passengerCar"},
{"path":"cam.camParameters.basicContainer.referencePosition.latitude","value":"41.3870 degree"},
{"path":"cam.camParameters.basicContainer.referencePosition.longitude","value":"2.1701 degree"},
{"path":"cam.camParameters.highFrequencyContainer.basicVehicleContainerHighFrequency.speed.speedValue","value":"13.89 m/s"}]}'
curl -X POST "https://api.asn1click.com/generate" \
-H "X-Ref: _Mapem_v2" -H "Content-Type: application/json" \
--data '{"format":"JER","content":"MINIMAL","overrides":[
{"path":"map.intersections[0].name","value":"Gran Via x Passeig de Gracia"},
{"path":"map.intersections[0].id.id","value":"1001"},
{"path":"map.intersections[0].refPoint.lat","value":"41.3918 degree"},
{"path":"map.intersections[0].refPoint.long","value":"2.1650 degree"},
{"path":"map.intersections[0].laneSet[1].laneID","value":"2"},
{"path":"map.intersections[0].laneSet[1].laneAttributes.directionalUse","value":"{ingressPath}"},
{"path":"map.intersections[0].laneSet[1].laneAttributes.laneType.bikeLane","value":"1000000000000000"}]}'
With an AI assistant the same is one request in plain language; the assistant calls generate
with set lines like the ones above (see AI assistants).
"altitudeConfidence": "alt-000-20" (XER: <alt-000-20/>)."stationType": 5), as X.697 requires."52" for a fixed size, {"value": "52", "length": 7} otherwise.<true/>; the XER root is the type name (<CAM>).