[API-users] ISO country code

David.Martin at csiro.au David.Martin at csiro.au
Tue Jul 1 03:28:45 CEST 2014


Hello,

This query was previously working:

http://api.gbif.org/v0.9/dataset/search?publishingCountry=SPAIN&type=OCCURRENCE&limit=1

But now returns:

"Value SPAIN invalid for filter parameter PUBLISHING_COUNTRY"

We've switched to using the 2 letter iso country code (which works fine):

http://api.gbif.org/v0.9/dataset/search?publishingCountry=ES&type=OCCURRENCE&limit=1<http://api.gbif.org/v0.9/dataset/search?publishingCountry=SPAIN&type=OCCURRENCE&limit=1>

but just thought I'd flag this in case it wasn't an intended change. This JIRA issue [1] suggests that the intention is to support both.

Cheers

Dave Martin
ALA

[1] http://dev.gbif.org/issues/browse/POR-43

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.gbif.org/pipermail/api-users/attachments/20140701/879d636d/attachment.html 


More information about the API-users mailing list