NationalMuseumAustralia / Collection-API

The public web API of the National Museum of Australia
10 stars 0 forks source link

Convert dimensions to number datatype in simple DC JSON #56

Closed staplegun closed 5 years ago

staplegun commented 6 years ago

Object dimensions are being stored as strings, e.g. object 64620

{
 "type" : "Measurement",
 "width" : "300",
 "depth" : "215",
 "weight" : "6.35",
 "unitText" : "mm",
 "unitTextWeight" : "kg"
}

Converting these to numbers means ranges and comparisons becomes possible in the future.

f27wood commented 6 years ago

Looks correct to me.