File: datasources.xml

package info (click to toggle)
viking 1.11-1
  • links: PTS, VCS
  • area: main
  • in suites:
  • size: 18,468 kB
  • sloc: ansic: 81,706; xml: 2,893; sh: 2,501; makefile: 874; python: 589; perl: 384; cpp: 259
file content (52 lines) | stat: -rw-r--r-- 3,075 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<objects>
  <object class="VikWebtoolDatasource">
    <property name="label">OpenStreetBugs</property>
    <property name="url_format_code">LRBT</property>
    <!-- format_code describes the order and what each of the substitution values are in the URL -->
    <!-- B = Bottom of the current view  i.e. minimum latitude -->
    <!-- L = Left of the current view  i.e. minimum longitude -->
    <!-- T = Top of the current view  i.e. maximum latitude -->
    <!-- R = Right of the current view i.e. maximum longitude -->
    <!-- A = center lAtitude of the current view -->
    <!-- O = center lOngitude of the current view -->
    <!-- Z = OSM Zoom value of the current view (http://wiki.openstreetmap.org/wiki/Zoom_levels) -->
    <property name="file_type"></property>
    <!-- A non defined or empty value (as above) means use internal GPX processing -->
    <!--  otherwise the value is used in calling gpsbabel with the '-i' parameter to identify the file format e.g. gpx or kml -->
    <!-- See http://www.gpsbabel.org/capabilities.html for the full range of file types. The value is case sensitive. -->
    <property name="url">http://openstreetbugs.schokokeks.org/api/0.1/getGPX?l=%s&amp;r=%s&amp;b=%s&amp;t=%s&amp;open=only_open_bugs</property>
  </object>
  <!-- NB In built, but this is the equivalent -->
  <object class="VikWebtoolDatasource">
    <!-- See http://wiki.openstreetmap.org/wiki/API_v0.6#Map_Notes_API-->
    <property name="label">OpenStreetMap Notes</property>
    <property name="url_format_code">LBRT</property>
    <property name="file_type"></property>
    <property name="url">http://api.openstreetmap.org/api/0.6/notes.gpx?bbox=%s,%s,%s,%s&amp;closed=0</property>
  </object>
  <object class="VikWebtoolDatasource">
    <property name="label">PostBoxes</property>
    <property name="url_format_code">AO</property>
    <!-- file_type not set, so uses internal GPX handler -->
    <property name="url">robert.mathmos.net/osm/postboxes/2/mapdata.cgi?lat=%s&amp;lon=%s&amp;output=gpx</property>
    <!-- URL doesn't have to have the starting 'http://' -->
  </object>
  <object class="VikWebtoolDatasource">
    <property name="label">OpenPlaques</property>
    <property name="url_format_code">TLBR</property>
    <property name="url">http://openplaques.org/plaques.kml?box=[%s,%s],[%s,%s]</property>
    <property name="file_type">kml</property>
  </object>

  <!-- Requires GPSBabel 1.5.2 to generate waypoints from OSM way centers -->
  <!-- Note the use of positional parameters, in this case: %5$s to repeat a value -->
  <object class="VikWebtoolDatasource">
    <property name="label">OpenStreetMap Amenity</property>
    <property name="url_format_code">BLTRS</property>
    <property name="babel_filter_args">-x nuketypes,routes,tracks</property>
    <property name="input_label">Amenity Search</property>
    <property name="file_type">osm</property>
    <property name="url">http://overpass-api.de/api/interpreter?data=[bbox:%s,%s,%s,%s];(node[amenity="%5$s"];way[amenity="%5$s"];);out%%20center;</property>
  </object>

</objects>