Been running into some issues with narrowing down a type for a given Issuer. I am currently performing the following:
Get /types
issuer=
category="coin"
q="km# " ("km# 111 Real")
In majority of cases this is sufficient enough, but in some cases it isn't.
Consider the Mexico 1820 Mo JJ 8 Reales I attempted (KM111).
Get /types
issuer="mexique"
category="coin"
q="km# 111 Real"
What i got back is (Simplified list)
>>> for n in r['data']['types']:
... print(n['title'])
...
8 Reales (LCM - Royalist countermarked coinage)
8 Reales - Carlos IV (MVA - Royalist countermark coinage)
8 Reales (Chilpanzingo - Insurgent countermarked coinage)
8 Reales (Chilpanzingo - Insurgent countermarked coinage)
8 Reales (Chilpanzingo and Morelos Countermarks)
8 Reales - Fernando VII
8 Reales - Fernando VII (MVA - Royalist Countermarked Coinage)
8 Reales (JML - Insurgent countermarked coinage)
8 Reales (LVS - Insurgent countermarked coinage)
8 Reales (NORTE - Insurgent countermarked coinage)
8 Reales - Fernando VII (Durango - Royalist coinage)
8 Reales - Fernando VII (Guadalajara - Royalist coinage)
8 Reales - Fernando VII (Guanajuato - Royalist Coinage)
8 Reales - Fernando VII (Zacatecas - Royalist Coinage)
8 Reales - Fernando VII (Chihuahua - Royalist coinage)
What we want is ‘8 Reales - Fernando VII’… Why were all these others included? Well the first one: ‘8 Reales (LCM - Royalist countermarked coinage)’ is because in it's comments, it lists a reference to… “KM#111.1”
Since it appears the q parameter searches comments and other type fields, its a great catch all… but not great for narrowing down.
# FEATURE REQUEST
Would it be possible to add a ‘ref’ parameter as optional to /types? I assume it would be preferable to have this be generic (ie: not ‘km’ specifically) so that Yeoman, or other references could be checked.
This would allow for:
Get /types
issuer="mexique"
category="coin"
q="Real"
ref='km# 111'
Which would have returned 111 and all subtypes of 111 (111.1, 111.2)
8 Reales - Fernando VII
8 Reales - Fernando VII (Durango - Royalist coinage)
8 Reales - Fernando VII (Guadalajara - Royalist coinage)
8 Reales - Fernando VII (Guanajuato - Royalist Coinage)
8 Reales - Fernando VII (Zacatecas - Royalist Coinage)
8 Reales - Fernando VII (Chihuahua - Royalist coinage)
Or even better, match exactly the KM… 111 only returns ‘8 Reales - Fernando VII’
TIA
