wiki:Geonol/API_REST/KMLResponseExample

Version 2 (modified by http://cbenz.myopenid.com/, 7 years ago) (diff)

--

Exemple de réponse KML

La réponse suivante correspond à cette requête : http://annuaire.comarquage.fr/rest/poi.kml?bbox=-22.236327886227,42.237904480392,25.224609611878,51.220675627132

<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://www.opengis.net/kml/2.2">
  <Document>
    <name>Organismes</name>
    <ExtendedData>
      <Data name="date">
        <value>2010-05-12 15:36:04.478872</value>
      </Data>
      <Data name="start">
        <value>0</value>
      </Data>
      <Data name="count">
        <value>56381</value>
      </Data>
    </ExtendedData>
    <Placemark id="TownHallOfFrance/38146">
      <name>Mairie de Dizimieu</name>
      <address>La perrière, 38460 Dizimieu</address>
      <Point>
        <coordinates>5.2966622,45.7189485</coordinates>
      </Point>
      <Style>
        <BalloonStyle>
          <text>
<![CDATA[
<h1 style="font-size: small">
    <a rel="external" href="http://lannuaire.service-public.fr/mairies/rhone-alpes/isere/mairie-38146-01.html">$[name]</a>
</h1>
<div class="adr">
  <div class="street-address">La perrière</div>
  <span class="postal-code">38460</span>
  <span class="locality">Dizimieu</span>
</div>
]]>
          </text>
        </BalloonStyle>
      </Style>
    </Placemark>
    <Placemark id="TownHallOfFrance/38147">
      <name>Mairie de Doissin</name>
      <address>2 place de la Mairie, 38730 Doissin</address>
      <Point>
        <coordinates>5.4230509,45.5000018</coordinates>
      </Point>
      <Style>
        <BalloonStyle>
          <text>
<![CDATA[
<h1 style="font-size: small">
    <a rel="external" href="http://lannuaire.service-public.fr/mairies/rhone-alpes/isere/mairie-38147-01.html">$[name]</a>
</h1>
<div class="adr">
  <div class="street-address">2 place de la Mairie</div>
  <span class="postal-code">38730</span>
  <span class="locality">Doissin</span>
</div>
]]>
          </text>
        </BalloonStyle>
      </Style>
    </Placemark>
    <Placemark id="TownHallOfFrance/38148">
      <name>Mairie de Dolomieu</name>
      <address>place Déodat Gratet de Dolomieu, 38110 Dolomieu</address>
      <Point>
        <coordinates>5.4979419,45.6109359</coordinates>
      </Point>
      <Style>
        <BalloonStyle>
          <text>
<![CDATA[
<h1 style="font-size: small">
    <a rel="external" href="http://lannuaire.service-public.fr/mairies/rhone-alpes/isere/mairie-38148-01.html">$[name]</a>
</h1>
<div class="adr">
  <div class="street-address">place Déodat Gratet de Dolomieu</div>
  <span class="postal-code">38110</span>
  <span class="locality">Dolomieu</span>
</div>
]]>
          </text>
        </BalloonStyle>
      </Style>
    </Placemark>
    <Placemark id="TownHallOfFrance/38149">
      <name>Mairie de Domarin</name>
      <address>33 bis avenue du bourg, 38300 Domarin</address>
      <Point>
        <coordinates>5.2452827,45.5857812</coordinates>
      </Point>
      <Style>
        <BalloonStyle>
          <text>
<![CDATA[
<h1 style="font-size: small">
    <a rel="external" href="http://lannuaire.service-public.fr/mairies/rhone-alpes/isere/mairie-38149-01.html">$[name]</a>
</h1>
<div class="adr">
  <div class="street-address">33 bis avenue du bourg</div>
  <span class="postal-code">38300</span>
  <span class="locality">Domarin</span>
</div>
]]>
          </text>
        </BalloonStyle>
      </Style>
    </Placemark>
    <Placemark id="TownHallOfFrance/38151">
      <name>Mairie d'Échirolles</name>
      <address>1 place des cinq fontaines, BP 248, 38433 Échirolles</address>
      <Point>
        <coordinates>5.7192372,45.1397974</coordinates>
      </Point>
      <Style>
        <BalloonStyle>
          <text>
<![CDATA[
<h1 style="font-size: small">
    <a rel="external" href="http://lannuaire.service-public.fr/mairies/rhone-alpes/isere/mairie-38151-01.html">$[name]</a>
</h1>
<div class="adr">
  <div class="street-address">1 place des cinq fontaines, BP 248</div>
  <span class="postal-code">38433</span>
  <span class="locality">Échirolles</span>
</div>
]]>
          </text>
        </BalloonStyle>
      </Style>
    </Placemark>
    <Placemark id="TownHallOfFrance/38152">
      <name>Mairie d'Eclose</name>
      <address>place des Tilleuls, 38300 Eclose</address>
      <Point>
        <coordinates>5.3327147,45.5059162</coordinates>
      </Point>
      <Style>
        <BalloonStyle>
          <text>
<![CDATA[
<h1 style="font-size: small">
    <a rel="external" href="http://lannuaire.service-public.fr/mairies/rhone-alpes/isere/mairie-38152-01.html">$[name]</a>
</h1>
<div class="adr">
  <div class="street-address">place des Tilleuls</div>
  <span class="postal-code">38300</span>
  <span class="locality">Eclose</span>
</div>
]]>
          </text>
        </BalloonStyle>
      </Style>
    </Placemark>
    <Placemark id="TownHallOfFrance/38153">
      <name>Mairie d'Engins</name>
      <address>route Joseph Coynel, 38360 Engins</address>
      <Point>
        <coordinates>5.6247191,45.1909973</coordinates>
      </Point>
      <Style>
        <BalloonStyle>
          <text>
<![CDATA[
<h1 style="font-size: small">
    <a rel="external" href="http://lannuaire.service-public.fr/mairies/rhone-alpes/isere/mairie-38153-01.html">$[name]</a>
</h1>
<div class="adr">
  <div class="street-address">route Joseph Coynel</div>
  <span class="postal-code">38360</span>
  <span class="locality">Engins</span>
</div>
]]>
          </text>
        </BalloonStyle>
      </Style>
    </Placemark>
    <Placemark id="TownHallOfFrance/38154">
      <name>Mairie d'Entraigues</name>
      <address>Le village, 38740 Entraigues</address>
      <Point>
        <coordinates>5.9487996,44.9016342</coordinates>
      </Point>
      <Style>
        <BalloonStyle>
          <text>
<![CDATA[
<h1 style="font-size: small">
    <a rel="external" href="http://lannuaire.service-public.fr/mairies/rhone-alpes/isere/mairie-38154-01.html">$[name]</a>
</h1>
<div class="adr">
  <div class="street-address">Le village</div>
  <span class="postal-code">38740</span>
  <span class="locality">Entraigues</span>
</div>
]]>
          </text>
        </BalloonStyle>
      </Style>
    </Placemark>
    <Placemark id="TownHallOfFrance/38155">
      <name>Mairie d'Entre-deux-Guiers</name>
      <address>place du 11 novembre1918, 38380 Entre-deux-Guiers</address>
      <Point>
        <coordinates>5.7534805,45.4328973</coordinates>
      </Point>
      <Style>
        <BalloonStyle>
          <text>
<![CDATA[
<h1 style="font-size: small">
    <a rel="external" href="http://lannuaire.service-public.fr/mairies/rhone-alpes/isere/mairie-38155-01.html">$[name]</a>
</h1>
<div class="adr">
  <div class="street-address">place du 11 novembre1918</div>
  <span class="postal-code">38380</span>
  <span class="locality">Entre-deux-Guiers</span>
</div>
]]>
          </text>
        </BalloonStyle>
      </Style>
    </Placemark>
    <Placemark id="TownHallOfFrance/38156">
      <name>Mairie des Éparres</name>
      <address>place du 19 mars 1962, 38300 Éparres</address>
      <Point>
        <coordinates>5.2917198,45.5327377</coordinates>
      </Point>
      <Style>
        <BalloonStyle>
          <text>
<![CDATA[
<h1 style="font-size: small">
    <a rel="external" href="http://lannuaire.service-public.fr/mairies/rhone-alpes/isere/mairie-38156-01.html">$[name]</a>
</h1>
<div class="adr">
  <div class="street-address">place du 19 mars 1962</div>
  <span class="postal-code">38300</span>
  <span class="locality">Éparres</span>
</div>
]]>
          </text>
        </BalloonStyle>
      </Style>
    </Placemark>
  </Document>
</kml>