示例#1
0
文件: api.php 项目: Abbe98/ODOK
<?php

/*
 * Entry point for api
 *
 */
#dynamickml does not require a proper search. Just return the output.
if ($_GET['format'] == 'dynamickml') {
    include 'FormatDynamicKml.php';
    FormatDynamicKml::output();
} elseif ($_GET['format'] == 'googlemaps') {
    include 'FormatDynamicKml.php';
    GoogleMaps::output();
} else {
    include 'ApiMain.php';
    ApiMain::search();
}