Live KML

For tools that speak KML — including the auto-refreshing NetworkLink that keeps a GIS layer current with zero effort.

GET/{key}/{scope}/{id}?fmt=kml

Plain KML document of the marks layer — current at the moment of the request.

GET/{key}/{scope}/{id}?fmt=kml&link=1

The one to hand to GIS teams: a NetworkLink wrapper instructing the client app to re-pull the feed every 300 s. Add it once; it stays current on its own. See the ArcGIS recipe.

curl "https://app.fiberconstructioncompany.com/api/field/v1/geoexport/fck_YOURKEY/site/8?fmt=kml&link=1"
const res = await fetch(
  "https://app.fiberconstructioncompany.com/api/field/v1/geoexport/fck_YOURKEY/site/8?fmt=kml&link=1");
const data = await res.json();
<?php
$data = json_decode(
  file_get_contents("https://app.fiberconstructioncompany.com/api/field/v1/geoexport/fck_YOURKEY/site/8?fmt=kml&link=1"),
  true);
import requests
data = requests.get(
  "https://app.fiberconstructioncompany.com/api/field/v1/geoexport/fck_YOURKEY/site/8?fmt=kml&link=1",
  timeout=30).json()
200 application/vnd.google-earth.kml+xml
<kml xmlns="http://www.opengis.net/kml/2.2">
<Document>
  <name>Site-Qa-01 Old Settlers (live)</name>
  <NetworkLink>
    <name>FCC Field live</name>
    <Link>
      <href>…?fmt=kml</href>
      <refreshMode>onInterval</refreshMode>
      <refreshInterval>300</refreshInterval>
    </Link>
  </NetworkLink>
</Document></kml>