diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..47a7201 --- /dev/null +++ b/.gitignore @@ -0,0 +1,59 @@ +/bootstrap/compiled.php +composer.phar +composer.lock + +# Skyfire Specific # +#################### +/library/packages/ + +# Packages # +############ +# it's better to unpack these files and commit the raw source +# git has its own built in compression methods +*.7z +*.dmg +*.gz +*.iso +*.jar +*.rar +*.tar +*.zip + +# Logs and databases # +###################### +*.log +*.sql +*.sqlite + +# Max OSX generated files # +########################### +.DS_Store +.DS_Store? +._* +.Spotlight-V100 +.Trashes +.AppleDouble +.LSOverride + +# Windows Generated Files # +########################### +ehthumbs.db +Thumbs.db +Desktop.ini + +# Node JSSpecific # +################### +node_modules +npm-debug.log +*.pid + +# IDE Specific # +################ +*.sublime-workspace +.idea/ +.project/ +.settings/ +.buildpath/ +*.sass-cache +Session.vim + diff --git a/README.md b/README.md new file mode 100644 index 0000000..ddea763 --- /dev/null +++ b/README.md @@ -0,0 +1,14 @@ +# GPlaz +=== + +Just another source code repo for some Google APIs. + +## Usage + +Please see the [example.php](example.php ) file for now. Will eventually add better docs later :] + +## License + +Code, documentation (if any), and/or examples by Travis van der Font + +This library is entirely open-sourced software licensed under the MIT License (MIT). Please see [License File](LICENSE) for more information. But remember, do as you wish! diff --git a/apikey.php b/apikey.php new file mode 100644 index 0000000..da7c91c --- /dev/null +++ b/apikey.php @@ -0,0 +1,5 @@ +setAddress('Bertrange, Luxembourg'); + +if ($results = $google->Geocode()) +{ + $google_maps = array + ( + 'address' => 'Bertrange, Luxembourg', + 'lat' => $results[0]->geometry->location->lat, + 'lng' => $results[0]->geometry->location->lng + ); + + var_dump(serialize($google_maps)); +} + +/* Searching places (Using location and store name) +$google = new Google(API_KEY); +$google->setQuery('Walmart, 33065, USA'); +$results = $google->searchPlace(); + +echo '
'; +print_r($results); +#print_r($google->error); +*/ diff --git a/index.php b/index.php deleted file mode 100644 index 2e2427a..0000000 --- a/index.php +++ /dev/null @@ -1,22 +0,0 @@ -setAddress('Bertrange, LU'); -$results = $google->Geocode(); - -echo ''; -print_r($results); - -/* Searching places (Using location and store name) -$google = new Google(API_KEY); -$google->setQuery('Walmart, 33065, USA'); -$results = $google->searchPlace(); - -echo ''; -print_r($results); -#print_r($google->error); -*/