W
W
WIN_322018-03-24 23:50:01
Python
WIN_32, 2018-03-24 23:50:01

How to find out where the water is in the picture using Google maps or python?

It is necessary to determine where the water is in the picture or map and build a route avoiding obstacles, how can this be done?
Are there any tools or libraries for this?
It's better to implement it in JAVASCRIPT. But if someone knows in PYTHON, then I will also be grateful.
Hoping for at least some source or information. Thank you.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
asdz, 2018-05-30
@asdz

  1. We divide the surface into a grid with the required accuracy by setting the size of the grid cell
  2. For each cell, we determine the type by requesting the geolocation api with the natural_feature filter by coordinates
  3. We check the cells with water (i.e. you can’t lay a route through them)
  4. We build a route from a given point to a destination using an algorithm of the A* family
https://developers.google.com/places/supported_type...
astar-search-algorithm-in-javascript
https://github.com/bgrins/javascript-astar

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question