libasterix API Reference Manual
1.26.0
src
libasterix
map.h
Go to the documentation of this file.
1
/*
2
* $COPYRIGHT-BEGIN$
3
* libasterix
4
* Copyright [2013-2026] SinoATC <http://www.sinoatc.com>.
5
* All Rights Reserved.
6
*
7
* NOTICE: All information contained herein is, and remains
8
* the property of SinoATC and its suppliers, if any.
9
* The intellectual and technical concepts contained herein
10
* are proprietary to SinoATC and its suppliers and may be
11
* covered by U.S. and Foreign Patents, patents in process,
12
* and are protected by trade secret or copyright law.
13
* Dissemination of this information or reproduction of this material
14
* is strictly forbidden unless prior written permission is obtained
15
* from SinoATC.
16
* $COPYRIGHT-END$
17
*/
18
24
25
#ifndef LIBASTERIX_MAP_H
26
#define LIBASTERIX_MAP_H
27
28
#include <stdbool.h>
29
#include "
platform.h
"
30
31
#ifdef __cplusplus
32
extern
"C"
{
33
#endif
34
36
typedef
enum
_ast_map_service_t
37
{
38
AST_MAP_NIL
,
39
AST_MAP_GOOGLE
,
40
AST_MAP_OSM
,
41
AST_MAP_AMAP
,
42
AST_MAP_BAIDU
,
43
}
ast_map_service_t
;
44
49
const
char
*
ast_map_get_service_name
(
const
ast_map_service_t
service);
50
62
bool
ast_map_get_link_url
(
char
* url,
const
size_t
url_size,
const
ast_map_service_t
service,
const
double
latitude,
const
double
longitude);
63
64
#ifdef __cplusplus
65
}
66
#endif
// extern "C"
67
68
#endif
//LIBASTERIX_MAP_H
69
70
// vim:set ft=c.doxygen sw=2 sts=2 fenc=utf8:
ast_map_get_link_url
bool ast_map_get_link_url(char *url, const size_t url_size, const ast_map_service_t service, const double latitude, const double longitude)
Get link URL of online map service.
ast_map_get_service_name
const char * ast_map_get_service_name(const ast_map_service_t service)
Get name of of online map service.
ast_map_service_t
ast_map_service_t
Map service.
Definition
map.h:37
AST_MAP_OSM
@ AST_MAP_OSM
Definition
map.h:40
AST_MAP_NIL
@ AST_MAP_NIL
Definition
map.h:38
AST_MAP_GOOGLE
@ AST_MAP_GOOGLE
Definition
map.h:39
AST_MAP_AMAP
@ AST_MAP_AMAP
Definition
map.h:41
AST_MAP_BAIDU
@ AST_MAP_BAIDU
Definition
map.h:42
platform.h
This file includes platform specific definitions.
Copyright 2008-2026
SinoATC