Skip to content

Format checking for waterdata api inputs #188

@ehinman

Description

@ehinman

Taken from #183 (comment)

Consider adding in more sophisticated type checking for waterdata api inputs. For example, someone could enter "dog" or 12345 as a monitoring location id and the service will make the call. This is inefficient when API rate limits are now imposed and we don't want users confused about why their data call returns no data.

Examples:

`check, md = waterdata.get_daily(
monitoring_location_id=5129115,
parameter_code="00060"
)

check, md = waterdata.get_daily(
monitoring_location_id="dog",
parameter_code="00060"
)`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions