home / cryptids

Menu
  • GraphQL API
  • Log in

Find cryptids with range encompassing a lat/lon

Custom SQL query (hide)

select
    id, name, description,
    wikipedia_url, additional_url,
    first_sighted, last_sighted
from
    cryptids
where
    within(GeomFromText('POINT(' || :longitude || ' ' || :latitude || ')'), cryptids.geom)
    and rowid in (
        SELECT pkid FROM idx_cryptids_geom
        where xmin < :longitude
        and xmax > :longitude
        and ymin < :latitude
        and ymax > :latitude
    )

Query parameters

0 results

Powered by Datasette · Queries took 5.512ms