← All pushup projects

Water-Or-Not

Live

Enter a latitude and longitude and find out whether that spot is on water or land, using the free is-on-water API. Try it right on its project page.

Documentation last updated November 22, 2026

  • React
  • TypeScript
  • Next.js
  • REST API

Try it

Try:

Water-Or-Not answers one question: is this spot on Earth on water? Type a latitude and longitude above (or tap one of the examples) and the page asks the free is-on-water API and shows the answer, including whether the water is an ocean, lake or river.

The story behind it

Water-Or-Not was one of the first applications I ever built. It started as an assignment in a junior college class where we had to build a GUI in Java, and mine did exactly one thing: take a latitude and longitude and tell you whether that spot was on water. I didn't learn a lot from it, but I built it, I enjoyed it, and it came with a story I still love telling. I rebuilt it here so I could share that story.

Part of what makes the story work is how simple the app is. A classmate built a currency converter for the same assignment, and instead of keeping the currencies in a list and looping through them, they wrote out the conversion for every single currency by hand. They put far more effort into converting US dollars into more than 100 currencies, while I earned full credit for a fraction of the work. It never fails to get a laugh.

How it works

The project is a single React component in this site's Next.js codebase, written in TypeScript. It checks that the coordinates are in range before sending anything, calls the API directly from the browser (it needs no key), validates the response, and handles the service's rate limit. One quirk it guards against: the API reports "unknown" places, such as invalid coordinates, as water, so the page shows those as "couldn't tell" instead.

The answers come from the ASTER Global Water Body Database, provided by the U.S./Japan ASTER Science Team, through the is-on-water API by Nuno Balbona. The data has a 30-meter resolution, so results right at a shoreline can be off by up to about that distance.