-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Labels
Description
Let users indicate states and counties by name instead of numerical code, using hash syntax.
@client.find('P0010001', county: 'Suffolk', state: 'MA')
@client.find('P0010001', county: 'Suffolk County', state: 'Massachusetts')
@client.find('P0010001', county: 25, state: 25)Also should accept symbol as a wildcard field name, plural field names, and multiple 'level' values as an array:
@client.find('P0010001', :county)
@client.find('P0010001', :states)
@client.find('P0010001', states:[25,26])This will mean the keys will be upcased to become API URL parameter names. The values will be looked up in a hash and converted to digits for the URL parameter values.
When multiple geometry parameters need to be specified for 'in', I imagine the following:
@client.find('P0010001', :submcd, {state: 72, county: 127, cousub: 79693})