mirror of
https://github.com/subsurface/subsurface.git
synced 2024-12-11 03:21:29 +00:00
ad57871a2c
The reverseGeoLookup() fetches dive-site data via GPS coordinates. The coordinates and the result were passed via the global "displayed_dive_site" object. To make data-flow more clear, pass data as in and out parameters instead. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
12 lines
392 B
C
12 lines
392 B
C
// SPDX-License-Identifier: GPL-2.0
|
|
#ifndef DIVESITEHELPERS_H
|
|
#define DIVESITEHELPERS_H
|
|
|
|
#include "taxonomy.h"
|
|
#include "units.h"
|
|
|
|
// Perform a reverse geo-lookup and put data in the provided taxonomy field.
|
|
// Original data with the exception of OCEAN will be overwritten.
|
|
void reverseGeoLookup(degrees_t latitude, degrees_t longitude, taxonomy_data *taxonomy);
|
|
|
|
#endif // DIVESITEHELPERS_H
|