Closed SimonGoring closed 8 years ago
Good point. The PBDB API allows longitude values outside of the range -180,180, but there is really no reason to allow latitude values outside of -90,90.
I have updated the composite API to return an error if the bbox coordinates are outside of the range -180..180 (longitude) and -90..90 (latitude).
Awesome! Thanks @mmcclenn!
This fix is referencing commit: https://github.com/EarthLifeConsortium/earthlife_API/commit/a742f49be394e7ddc11df6526b3e0c2f4b619602
The call:
https://training.paleobiodb.org/comp1.0/occs/list.json?max_ma=2&bbox=-180,-90,10,180&vocab=neotoma
Fails on the neotoma side (as it should, since there is no 180^oN):
but it seems to work with PBDB. This should fail universally.