Skip to content
This repository has been archived by the owner on Mar 15, 2022. It is now read-only.

geospatial parameter not working #878

Open
jfessic opened this issue Aug 26, 2019 · 0 comments
Open

geospatial parameter not working #878

jfessic opened this issue Aug 26, 2019 · 0 comments

Comments

@jfessic
Copy link

jfessic commented Aug 26, 2019

Hello,

I have an External Data Sources interface for finding geospatial data.
Example search: https://www.lib.ncsu.edu/gis/search/search.php?q=counties

In my code, I have been using this path to obtain results in json that I can then parse:
https://catalog.data.gov/api/3/action/package_search?q=counties&fq=geospatial

The above worked until recently (I do not know when it stopped working). However, now the parameter fg=geospatial causes it to return 0 results. If I remove that parameter, I will get a lot of results, but they are not limited to geospatial.

My question is, has the geospatial limiting parameter changed, and if so, what is the new parameter? If not, how would you recommend that I limit my results to only geo?

I've tried "metadata_type=geospatial" which works with the main data.gov homepage when you pick "Dataset Type" -> "geospatial" but this doesn't work with the api.

For now, I am using https://catalog.data.gov/api/3/action/package_search?q=$query to avoid having 0 results.

Thank you very much for your time and suggestions!
Jeff Essic

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant