Simple API and database schema for storing and retrieving OpenStreetMap POI data
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
1.2 KiB

  1. <?php
  2. /*
  3. * This Source Code Form is subject to the terms of the Mozilla Public
  4. * License, v. 2.0. If a copy of the MPL was not distributed with this
  5. * file, You can obtain one at http://mozilla.org/MPL/2.0/.
  6. */
  7. // Settings for the app.
  8. // Copy to settings.php and customize.
  9. $SETTINGS = [
  10. // Whether to output debugging info like PHP notices, warnings,
  11. // and stacktraces.
  12. // Turning this on in production is a security risk and can sometimes break
  13. // things, such as JSON output where extra content is not expected.
  14. "debug" => false,
  15. // Database connection settings
  16. // See http://medoo.in/api/new for info
  17. "database" => [
  18. "type" => "mysql",
  19. "name" => "poidb",
  20. "server" => "localhost",
  21. "user" => "root",
  22. "password" => "",
  23. "charset" => "utf8"
  24. ],
  25. // Maximum number of results to return.
  26. "max_results" => 1000,
  27. // Default radius when searching by location, in kilometers
  28. "default_radius" => 10,
  29. // Name of the app.
  30. "site_title" => "OSM Points of Interest",
  31. // For supported values, see http://php.net/manual/en/timezones.php
  32. "timezone" => "America/Denver"
  33. ];