This file includes functions related with map generation. More...


Go to the source code of this file.
Enumerations | |
| enum | ast_map_service_t { AST_MAP_NIL, AST_MAP_GOOGLE, AST_MAP_OSM, AST_MAP_AMAP, AST_MAP_BAIDU } |
| Map service. More... | |
Functions | |
| const char * | ast_map_get_service_name (const ast_map_service_t service) |
| Get name of of online map service. More... | |
| 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. More... | |
This file includes functions related with map generation.
| enum ast_map_service_t |
| 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.
| url | Buffer to save return url |
| url_size | Url buffer size |
| service | Map service |
| latitude | Latitude of map center |
| longitude | Longitude of map center |
If return true, the url shall be filled with URL of the map service like http://maps.google.com/.
| const char* ast_map_get_service_name | ( | const ast_map_service_t | service | ) |
Get name of of online map service.
| service | Map service |