libasterix API Reference Manual
1.9.0
src
libasterix
map.h
Go to the documentation of this file.
1
/*
2
* libasterix
3
* Copyright [2013-2021] SinoATC <http://www.sinoatc.com>.
4
* All Rights Reserved.
5
*
6
* NOTICE: All information contained herein is, and remains
7
* the property of SinoATC and its suppliers, if any.
8
* The intellectual and technical concepts contained herein
9
* are proprietary to Aerosys Corporation and its suppliers and may be
10
* covered by U.S. and Foreign Patents, patents in process,
11
* and are protected by trade secret or copyright law.
12
* Dissemination of this information or reproduction of this material
13
* is strictly forbidden unless prior written permission is obtained
14
* from SinoATC.
15
*/
16
23
#ifndef LIBASTERIX_MAP_H
24
#define LIBASTERIX_MAP_H
25
26
#include <stdbool.h>
27
#include "
platform.h
"
28
29
#ifdef __cplusplus
30
extern
"C"
{
31
#endif
32
34
typedef
enum
_ast_map_service_t
35
{
36
AST_MAP_NIL
,
37
AST_MAP_GOOGLE
,
38
AST_MAP_OSM
,
39
AST_MAP_AMAP
,
40
AST_MAP_BAIDU
,
41
}
ast_map_service_t
;
42
47
const
char
*
ast_map_get_service_name
(
const
ast_map_service_t
service);
48
60
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);
61
62
#ifdef __cplusplus
63
}
64
#endif // extern "C"
65
66
#endif //LIBASTERIX_MAP_H
67
68
// vim:set ft=c 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.
platform.h
This file includes platform specific definitions.
ast_map_service_t
ast_map_service_t
Map service.
Definition:
map.h:34
AST_MAP_NIL
Definition:
map.h:36
AST_MAP_GOOGLE
Definition:
map.h:37
AST_MAP_AMAP
Definition:
map.h:39
AST_MAP_BAIDU
Definition:
map.h:40
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_OSM
Definition:
map.h:38
Copyright 2008-2021
SinoATC