ChamplainNetworkMapDataSource

ChamplainNetworkMapDataSource — Downloads map data for ChamplainMemphisTileSource

Synopsis

                    ChamplainNetworkMapDataSource;
ChamplainNetworkMapDataSource* champlain_network_map_data_source_new
                                                        (void);
void                champlain_network_map_data_source_load_map_data
                                                        (ChamplainNetworkMapDataSource *map_data_source,
                                                         gdouble bound_left,
                                                         gdouble bound_bottom,
                                                         gdouble bound_right,
                                                         gdouble bound_top);
void                champlain_network_map_data_source_set_api_uri
                                                        (ChamplainNetworkMapDataSource *map_data_source,
                                                         const gchar *api_uri);
const gchar *       champlain_network_map_data_source_get_api_uri
                                                        (ChamplainNetworkMapDataSource *map_data_source);

Object Hierarchy

  GObject
   +----GInitiallyUnowned
         +----ChamplainMapDataSource
               +----ChamplainNetworkMapDataSource

Properties

  "api-uri"                  gchar*                : Read / Write
  "proxy-uri"                gchar*                : Read / Write

Description

This map data source downloads the map data from an OpenStreetMap API server. It supports protocol version 0.5 and 0.6.

http://wiki.openstreetmap.org/wiki/API

Details

ChamplainNetworkMapDataSource

typedef struct _ChamplainNetworkMapDataSource ChamplainNetworkMapDataSource;


champlain_network_map_data_source_new ()

ChamplainNetworkMapDataSource* champlain_network_map_data_source_new
                                                        (void);

Creates an instance of ChamplainNetworkMapDataSource.

Since 0.6


champlain_network_map_data_source_load_map_data ()

void                champlain_network_map_data_source_load_map_data
                                                        (ChamplainNetworkMapDataSource *map_data_source,
                                                         gdouble bound_left,
                                                         gdouble bound_bottom,
                                                         gdouble bound_right,
                                                         gdouble bound_top);

Asynchronously loads map data within a bounding box from the server. The box must not exceed an edge size of 0.25 degree. There are also limitations on the maximum number of nodes that can be requested.

For details, see: http://api.openstreetmap.org/api/capabilities

map_data_source :

a ChamplainNetworkMapDataSource

bound_left :

the left bound in degree

bound_bottom :

the lower bound in degree

bound_right :

the right bound in degree

bound_top :

the upper bound in degree

Since 0.6


champlain_network_map_data_source_set_api_uri ()

void                champlain_network_map_data_source_set_api_uri
                                                        (ChamplainNetworkMapDataSource *map_data_source,
                                                         const gchar *api_uri);

Sets the URI of the API server.

map_data_source :

a ChamplainNetworkMapDataSource

api_uri :

an URI of an API server

Since 0.6


champlain_network_map_data_source_get_api_uri ()

const gchar *       champlain_network_map_data_source_get_api_uri
                                                        (ChamplainNetworkMapDataSource *map_data_source);

Gets the URI of the API server.

map_data_source :

a ChamplainNetworkMapDataSource

Returns :

the URI of the API server.

Since 0.6

Property Details

The "api-uri" property

  "api-uri"                  gchar*                : Read / Write

The URI of an OpenStreetMap API server

Default value: "http://www.informationfreeway.org/api/0.6"

Since 0.6


The "proxy-uri" property

  "proxy-uri"                gchar*                : Read / Write

The proxy URI to use to access network

Default value: ""

Since 0.6