Skip to content

Allow text specification of states, counties #4

@beechnut

Description

@beechnut

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})

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions