yawik / SimpleImport

Simple Job Import Module. Imports job openings into YAWIK
MIT License
0 stars 1 forks source link

Geoencode locations #6

Closed cbleek closed 6 years ago

cbleek commented 7 years ago

the SimpleImport module should be able to geoencode locations. http://geocoder-php.org/ can do the task but the latest version requires php7.

But the older version 3.3 is working with php5.6

https://github.com/cbleek/geocoder-php-test

So the SimpleImport should be able create location objects with city, country, coods

@TiSiE do you agree?

@fedys could you implement this?

fedys commented 7 years ago

I can implement that. I am too busy this week. I can take a look at it next Thursday.

cbleek commented 7 years ago

Thats ok.

fedys commented 7 years ago

@cbleek I am working on it.

fedys commented 7 years ago

I have implemented that in https://github.com/yawik/SimpleImport/tree/geoencode You have to run the following to load dependencies composer require --dev yawik/simple-import (version v0.0.5 should be installed with the Geoencode dependencies). Now it should be working. You can optionally replace /module/SimpleImport with the Git cloned one.

cbleek commented 7 years ago

where can I configure the google key? or is it currently nit possible?

fedys commented 7 years ago

You can do it via:

return [
    'options' => [
        'SimpleImport/Options/Module' => [
            'options' => [
                'geocodeGoogleApiKey' => 'yourKey',
            ]
        ]
    ]
];
cbleek commented 6 years ago

works very good. Thanks