map.h
Go to the documentation of this file.
1 // vim:set ft=c sw=2 sts=2 fenc=utf8:
2 
3 /*
4  * libasterix
5  * Copyright [2013-2020] SinoATC <http://www.sinoatc.com>.
6  * All Rights Reserved.
7  *
8  * NOTICE: All information contained herein is, and remains
9  * the property of SinoATC and its suppliers, if any.
10  * The intellectual and technical concepts contained herein
11  * are proprietary to Aerosys Corporation and its suppliers and may be
12  * covered by U.S. and Foreign Patents, patents in process,
13  * and are protected by trade secret or copyright law.
14  * Dissemination of this information or reproduction of this material
15  * is strictly forbidden unless prior written permission is obtained
16  * from SinoATC.
17  */
18 
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 
35 typedef enum _ast_map_zoom_t
36 {
40 
54 typedef bool (*ast_get_map_url_func_t) (char* url, const size_t url_size, const int width, const int height, const ast_map_zoom_t zoom, const double latitude, const double longitude);
55 
58 
62 AST_API bool ast_get_map_url_google(char* url, const size_t url_size, const int width, const int height, const ast_map_zoom_t zoom, const double latitude, const double longitude);
63 
67 AST_API bool ast_get_map_url_googlechina(char* url, const size_t url_size, const int width, const int height, const ast_map_zoom_t zoom, const double latitude, const double longitude);
68 
72 AST_API bool ast_get_map_url_osm(char* url, const size_t url_size, const int width, const int height, const ast_map_zoom_t zoom, const double latitude, const double longitude);
73 
79 AST_API bool ast_get_map_url_tencent(char* url, const size_t url_size, const int width, const int height, const ast_map_zoom_t zoom, const double latitude, const double longitude);
80 
86 AST_API bool ast_get_map_url_baidu(char* url, const size_t url_size, const int width, const int height, const ast_map_zoom_t zoom, const double latitude, const double longitude);
87 
94 AST_API bool ast_get_map_url_nomap(char* url, const size_t url_size, const int width, const int height, const ast_map_zoom_t zoom, const double latitude, const double longitude);
95 
96 
97 #ifdef __cplusplus
98  }
99 #endif // extern "C"
100 
101 #endif //LIBASTERIX_MAP_H
102 
#define AST_API
Definition: platform.h:63
bool(* ast_get_map_url_func_t)(char *url, const size_t url_size, const int width, const int height, const ast_map_zoom_t zoom, const double latitude, const double longitude)
Function prototype of getting map url.
Definition: map.h:54
ast_map_zoom_t
Definition: map.h:35
This file includes platform specific definitions.
void ast_reg_callback_get_map_url(ast_get_map_url_func_t callback)
Register callback function of ast_get_map_url_func_t.
bool ast_get_map_url_osm(char *url, const size_t url_size, const int width, const int height, const ast_map_zoom_t zoom, const double latitude, const double longitude)
Map service use Open Street Map.
bool ast_get_map_url_nomap(char *url, const size_t url_size, const int width, const int height, const ast_map_zoom_t zoom, const double latitude, const double longitude)
Null Map service.
bool ast_get_map_url_baidu(char *url, const size_t url_size, const int width, const int height, const ast_map_zoom_t zoom, const double latitude, const double longitude)
Map service use Baidu Map.
bool ast_get_map_url_google(char *url, const size_t url_size, const int width, const int height, const ast_map_zoom_t zoom, const double latitude, const double longitude)
Map service use Google Maps.
Definition: map.h:37
bool ast_get_map_url_tencent(char *url, const size_t url_size, const int width, const int height, const ast_map_zoom_t zoom, const double latitude, const double longitude)
Map service use Tencent Map.
bool ast_get_map_url_googlechina(char *url, const size_t url_size, const int width, const int height, const ast_map_zoom_t zoom, const double latitude, const double longitude)
Map service use Google Maps China.
Definition: map.h:38