PHP script to find the air distance from one location to a list of other locations
Find a file
2016-05-24 01:02:22 +02:00
city-data Check in Distance Finder as found in ancient SVN repo 2016-05-24 00:51:25 +02:00
bootstrap.php Check in Distance Finder as found in ancient SVN repo 2016-05-24 00:51:25 +02:00
db-functions.php Check in Distance Finder as found in ancient SVN repo 2016-05-24 00:51:25 +02:00
distances.txt Check in Distance Finder as found in ancient SVN repo 2016-05-24 00:51:25 +02:00
download.php Check in Distance Finder as found in ancient SVN repo 2016-05-24 00:51:25 +02:00
functions.php Check in Distance Finder as found in ancient SVN repo 2016-05-24 00:51:25 +02:00
get-location1.php Check in Distance Finder as found in ancient SVN repo 2016-05-24 00:51:25 +02:00
get-locations.php Check in Distance Finder as found in ancient SVN repo 2016-05-24 00:51:25 +02:00
index.php Check in Distance Finder as found in ancient SVN repo 2016-05-24 00:51:25 +02:00
install.php Check in Distance Finder as found in ancient SVN repo 2016-05-24 00:51:25 +02:00
javascript.js Check in Distance Finder as found in ancient SVN repo 2016-05-24 00:51:25 +02:00
map.php Check in Distance Finder as found in ancient SVN repo 2016-05-24 00:51:25 +02:00
README Check in Distance Finder as found in ancient SVN repo 2016-05-24 00:51:25 +02:00
save-location1.php Check in Distance Finder as found in ancient SVN repo 2016-05-24 00:51:25 +02:00
save-locations.php Check in Distance Finder as found in ancient SVN repo 2016-05-24 00:51:25 +02:00
styles.css Check in Distance Finder as found in ancient SVN repo 2016-05-24 00:51:25 +02:00
towns.txt Check in Distance Finder as found in ancient SVN repo 2016-05-24 00:51:25 +02:00

= Distance Finder =

PHP script allowing users to find the air distance between cities. Uses information from Google if data not found in local database.

== License ==

Distance Finder by Klaus-Uwe Mitterer is licensed under the Creative Commons Attribution-ShareAlike 3.0 Unported License. To view a copy of this license, visit http://creativecommons.org/licenses/by-sa/3.0/.

Permissions beyond the scope of this license may be available at info@klaus-uwe.me.

== Installation ==

Change the following settings in bootstrap.php:

DB_HOST = The host on which your MySQL database is running. Usually localhost.
DB_NAME = The name of your MySQL database.
DB_USER = The user name for your MySQL database.
DB_PASSWORD = The corresponding password.
CSVFILE = The file you want to import to the database. Has to be in the following format: City name, Country code, State code, Population, Latitude, Longitude. Can be an empty file. Make sure this file exists in the same folder as the install.php

Then go to http://yoursite.com/[subdirectory]/install.php and follow the instructions. Depending on the size of the CSV file you are importing into the database, this might take a while.

When the installation has finished, you might want to remove or rename install.php.

== Troubleshooting ==

If you keep getting empty files when trying to download the distance list, make sure that the web server has permissions to write in the folder (e.g. chown www-data:www-data)