Skip to content

Commit

Permalink
initial commit (a little bit cheating)
Browse files Browse the repository at this point in the history
  • Loading branch information
jadwigo committed Apr 5, 2020
0 parents commit a378323
Show file tree
Hide file tree
Showing 12 changed files with 723 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.DS_*
config.yml
composer.lock
vendor/
tests/tmp/

10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
GeoSync extension
=================

This extension will fetch details from the Google API for partial addresses.

At the mment it looks for pharmacies in the netherlands.

Details include latitude, longitude, name, phonenumber, website.

It's still a bit fuzzy around the edges - so not all addresses resolve correctly, and sometimes a pharmacy a few hunded meters next to the given address is found.
30 changes: 30 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"name": "jadwigo/geosync",
"description": "Lookup, fix and update geolocation data in content",
"type": "bolt-extension",
"keywords": [
"geolocation",
"address",
"location"
],
"require": {
"bolt/bolt": "^3.0"
},
"license": "MIT",
"authors": [
{
"name": "Lodewijk Evers",
"email": "jadwigo@gmail.com"
}
],
"minimum-stability": "dev",
"prefer-stable": true,
"autoload": {
"psr-4": {
"Bolt\\Extension\\Jadwigo\\GeoSync\\": "src"
}
},
"extra": {
"bolt-class": "Bolt\\Extension\\Jadwigo\\GeoSync\\GeoSyncExtension"
}
}
Empty file added config/.gitignore
Empty file.
8 changes: 8 additions & 0 deletions config/config.yml.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# most of these values will be set by default

# usually this should be google geolocation
# provider: https://geolocate.google.com/query

# if authkey is not set here
# the default google_api_key from the main config.yml wil be used
# authkey: null
63 changes: 63 additions & 0 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit backupGlobals="false"
backupStaticAttributes="false"
bootstrap="tests/bootstrap.php"
colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false"
syntaxCheck="false">
<testsuites>
<testsuite name="unit">
<directory>tests</directory>
</testsuite>
</testsuites>
<listeners>
<listener file="vendor/bolt/bolt/tests/phpunit/BoltListener.php" class="Bolt\Tests\BoltListener">
<arguments>
<!-- Configuration files. Can be either .yml or .yml.dist files -->
<!-- Locations can be relative to TEST_ROOT directory, the Bolt directory, or an absolute path -->
<array>
<element key="config">
<string>vendor/bolt/bolt/app/config/config.yml.dist</string>
</element>
<element key="contenttypes">
<string>vendor/bolt/bolt/app/config/contenttypes.yml.dist</string>
</element>
<element key="menu">
<string>vendor/bolt/bolt/app/config/menu.yml.dist</string>
</element>
<element key="permissions">
<string>vendor/bolt/bolt/app/config/permissions.yml.dist</string>
</element>
<element key="routing">
<string>vendor/bolt/bolt/app/config/routing.yml.dist</string>
</element>
<element key="taxonomy">
<string>vendor/bolt/bolt/app/config/taxonomy.yml.dist</string>
</element>
</array>
<!-- Theme directory. Can be relative to TEST_ROOT directory, the Bolt directory, or an absolute path -->
<array>
<element key="theme">
<string>theme/base-2014</string>
</element>
</array>
<!-- The Bolt SQLite database, leave empty to use the one bundled with Bolt's repository -->
<!-- Location can be relative to TEST_ROOT directory, the Bolt directory, or an absolute path -->
<array>
<element key="boltdb">
<string>vendor/bolt/bolt/tests/phpunit/unit/resources/db/bolt.db</string>
</element>
</array>
<!-- Reset the cache and test temporary directories -->
<boolean>true</boolean>
<!-- Create timer output in app/cache/phpunit-test-timer.txt -->
<boolean>true</boolean>
</arguments>
</listener>
</listeners>
</phpunit>

Loading

0 comments on commit a378323

Please sign in to comment.