I'm running the ruby sample provided by DOL to access DOLs OSHA API. The relevant ruby code is:
request.call_api 'Compliance/OSHA/full',
:select => 'activity_nr,estab_name,total_violations,site_address,site_city,site_state,site_zip',
:orderby => 'estab_name',
:filter => "(site_zip eq '27331')" do |results, error|
...
where I'm passing in a zip code as the search filter. Running this particular query does not return any results. The table being searched is called 'full'.
If I run the same search via the DOL Data Enforcement Site's search tool, I get different results. I check the box to search the OSHA Inspections and enter a zip code and (as of this writing) 56 results are returned.
So my question is: What datasource is the web based search tool searching against and is it the same datasource that the API uses?
I would have assumed both would return the same set of results.