]>
Commit | Line | Data |
---|---|---|
95272265 | 1 | <objects> |
95272265 RN |
2 | <object class="VikWebtoolDatasource"> |
3 | <property name="label">OpenStreetBugs</property> | |
4 | <property name="url_format_code">LRBT</property> | |
5 | <!-- format_code describes the order and what each of the substitution values are in the URL --> | |
6 | <!-- B = Bottom of the current view i.e. minimum latitude --> | |
7 | <!-- L = Left of the current view i.e. minimum longitude --> | |
8 | <!-- T = Top of the current view i.e. maximum latitude --> | |
9 | <!-- R = Right of the current view i.e. maximum longitude --> | |
10 | <!-- A = center lAtitude of the current view --> | |
11 | <!-- O = center lOngitude of the current view --> | |
12 | <!-- Z = OSM Zoom value of the current view (http://wiki.openstreetmap.org/wiki/Zoom_levels) --> | |
13 | <property name="file_type"></property> | |
14 | <!-- A non defined or empty value (as above) means use internal GPX processing --> | |
15 | <!-- otherwise the value is used in calling gpsbabel with the '-i' parameter to identify the file format e.g. gpx or kml --> | |
16 | <!-- See http://www.gpsbabel.org/capabilities.html for the full range of file types. The value is case sensitive. --> | |
17 | <property name="url">http://openstreetbugs.schokokeks.org/api/0.1/getGPX?l=%s&r=%s&b=%s&t=%s&open=only_open_bugs</property> | |
18 | </object> | |
5910b4fb RN |
19 | <!-- NB In built, but this is the equivalent --> |
20 | <object class="VikWebtoolDatasource"> | |
21 | <!-- See http://wiki.openstreetmap.org/wiki/API_v0.6#Map_Notes_API--> | |
22 | <property name="label">OpenStreetMap Notes</property> | |
23 | <property name="url_format_code">LBRT</property> | |
24 | <property name="file_type"></property> | |
25 | <property name="url">http://api.openstreetmap.org/api/0.6/notes.gpx?bbox=%s,%s,%s,%s&closed=0</property> | |
26 | </object> | |
95272265 RN |
27 | <object class="VikWebtoolDatasource"> |
28 | <property name="label">PostBoxes</property> | |
29 | <property name="url_format_code">AO</property> | |
30 | <!-- file_type not set, so uses internal GPX handler --> | |
31 | <property name="url">robert.mathmos.net/osm/postboxes/2/mapdata.cgi?lat=%s&lon=%s&output=gpx</property> | |
32 | <!-- URL doesn't have to have the starting 'http://' --> | |
33 | </object> | |
34 | <object class="VikWebtoolDatasource"> | |
35 | <property name="label">OpenPlaques</property> | |
36 | <property name="url_format_code">TLBR</property> | |
37 | <property name="url">http://openplaques.org/plaques.kml?box=[%s,%s],[%s,%s]</property> | |
38 | <property name="file_type">kml</property> | |
39 | </object> | |
220ff557 | 40 | |
65abf3d0 RN |
41 | <!-- Requires GPSBabel 1.5.2 to generate waypoints from OSM way centers --> |
42 | <!-- Note the use of positional parameters, in this case: %5$s to repeat a value --> | |
220ff557 RN |
43 | </object> |
44 | <object class="VikWebtoolDatasource"> | |
45 | <property name="label">OpenStreetMap Amenity</property> | |
46 | <property name="url_format_code">BLTRS</property> | |
47 | <property name="babel_filter_args">-x nuketypes,routes,tracks</property> | |
48 | <property name="input_label">Amenity Search</property> | |
49 | <property name="file_type">osm</property> | |
50 | <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> | |
51 | </object> | |
52 | ||
95272265 | 53 | </objects> |