root/tools/routingservice/branches/wrs-2.0/data/templates/geocode/geocode_kml.st

Revision 318, 1.6 KB (checked in by daniel, 19 months ago)

ol template for geocode

Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<kml xmlns="http://www.opengis.net/kml/2.2">
3        <Document>
4                <name></name>
5                <description></description>
6               
7                <Style id="pointStyle">
8                        <IconStyle>
9                                <color>ff00ff00</color>
10                                <scale>1.1</scale>
11                                <Icon>
12                                        <href>http://maps.google.com/mapfiles/kml/pal3/icon21.png</href>
13                                </Icon>
14                        </IconStyle>
15                </Style>
16
17$parameters:{ p |
18                <Placemark>
19                        <name></name>
20                        <address>$p.address$</address>
21                        <description></description>
22                        <styleUrl>#pointStyle</styleUrl>
23               
24                        <Point>
25                                <altitudeMode>clampToGround</altitudeMode>
26                                <coordinates>$p.point$</coordinates>
27                        </Point>
28
29                        <AddressDetails Accuracy="$p.precision$">
30                                <Country>
31                                        <CountryNameCode>$p.country$</CountryNameCode>
32                                        <AdministrativeArea>
33                                                <AdministrativeAreaName>$p.area$</AdministrativeAreaName>
34                                                <SubAdministrativeArea>
35                                                        <SubAdministrativeAreaName>$p.subarea$</SubAdministrativeAreaName>
36                                                        <Locality>
37                                                                <LocalityName>$p.locality$</LocalityName>
38                                                                <Thoroughfare>
39                                                                        <ThoroughfareName>$p.thouroghfare$</ThoroughfareName>
40                                                                </Thoroughfare>
41                                                                <PostalCode>
42                                                                        <PostalCodeNumber>$p.postal$</PostalCodeNumber>
43                                                                </PostalCode>
44                                                        </Locality>
45                                                </SubAdministrativeArea>
46                                        </AdministrativeArea>
47                                </Country>
48                        </AddressDetails>
49}$                             
50                       
51                        <ExtendedData xmlns:wrs="http://pgrouting.postlbs.org/wrs/1.1.0">
52                                <wrs:status>
53                                        <wrs:code>200</wrs:code>
54                                        <wrs:request>geocode</wrs:request>
55                                </wrs:status>
56                                <wrs:user>
57                                        <wrs:request_id>$p.request_id$</wrs:request_id>
58                                </wrs:user>
59                        </ExtendedData>
60                </Placemark>
61        </Document>
62</kml>
Note: See TracBrowser for help on using the browser.