diff --git a/application/controllers/kml.php b/application/controllers/kml.php
new file mode 100644
index 00000000..861b83eb
--- /dev/null
+++ b/application/controllers/kml.php
@@ -0,0 +1,82 @@
+load->library('qra');
+ $this->load->helper('file');
+
+ // Load Database connections
+ $this->load->model('logbook_model');
+
+ // Get QSOs with Valid QRAs
+ $qsos = $this->logbook_model->kml_get_all_qsos();
+
+ //header('Content-type: text/xml');
+ //header("Cache-Control: no-cache");
+
+ $output = "";
+ $output .= "";
+
+ $output .= "";
+
+ foreach ($qsos->result() as $row)
+ {
+ $output .= "";
+ //print_r($row);
+ if($row->COL_GRIDSQUARE != null) {
+ $stn_loc = $this->qra->qra2latlong($row->COL_GRIDSQUARE);
+
+ $lat = $stn_loc[0];
+ $lng = $stn_loc[1];
+ } else {
+ $query = $this->db->query('
+ SELECT *
+ FROM dxcc
+ WHERE prefix = SUBSTRING( \''.$row->COL_CALL.'\', 1, LENGTH( prefix ) )
+ ORDER BY LENGTH( prefix ) DESC
+ LIMIT 1
+ ');
+
+ foreach ($query->result() as $dxcc) {
+ $lat = $dxcc->lat;
+ $lng = $dxcc->long;
+ }
+ }
+
+ $timestamp = strtotime($row->COL_TIME_ON);
+
+
+ $output .= "".$row->COL_CALL."";
+ $output .= "Date/Time: ".date('Y-m-d H:i:s', ($timestamp))."
Band: ".$row->COL_BAND."
]]>";
+ $output .= "
+
+
+session->flashdata('notice')) { ?>
+
+ session->flashdata('notice'); ?>
+
+
+
+There are a number of API calls you can make from other applications.
+
+
search
+
Description
+Query the logbook
+
Syntax
+
/search/query[<field><=|~><value>{(and|or)...]}/limit[<num>]/fields[<field1>,{<field2>}]/order[<field>]
+Example
+Search for entries with a call beginning with M0 and a locator beginning with I or J, show the callsign and locator fields, order it by callsign and limit the results to 10.
+/search/query[Call~M0*(and)(Locator~I*(or)Locator~J*)]/limit[10]/fields[distinct(Call),Locator]/order[Call(asc)]
+Run it!
+
+
diff --git a/application/views/social/map.php b/application/views/social/map.php
new file mode 100644
index 00000000..b14a4114
--- /dev/null
+++ b/application/views/social/map.php
@@ -0,0 +1,123 @@
+
+
+
+
+