To find the nearest water source near a user and find data related to water in the region
For finding the nearest waterbody to a user, we used Google Maps' elevation API to locate places within 111km of the user's location which were below sea level. Using this method we can locate water bodies who tend to lie below 0m.
This part of the challenge took longer as we attempted several methods ranging from reverse geo coding to iterating through pixels in a map's image and to look for a colour relating to water and then scaling it to the actual map.
None of these methods were successful as reverse geocoding ended up not showing oceans as water bodies! On the other hand, iterating through pixels in an image was unsuccesful as adding an image to the canvas blurred the image which would affect the final result.
In the end we relied on elevation to locate water bodies.
The second part of out project was finding data pertaining to water in the user's region, specifically the percentage of population with access to a water source and the total water usage per capita in that region.
Project: https://free-basket.glitch.me/
Github repo: https://github.com/BenRitmicoCode/SpaceApps/tree/master
SpaceApps is a NASA incubator innovation program.