Skip to content

Using createUsingApiKey for Here in chain-provider #185

@chriserikhaugli

Description

@chriserikhaugli

General Information

GeocoderLaravel Version: 4.4
Laravel Version: 8.0
PHP Version: 7.4
Operating System and Version: Ubuntu 20.04

Issue Description

Here is now using apiKey instead of app_id and app_code in new applications.
geocoder-php (issue #1087) have fixed this by adding the Here::createUsingApiKey-method, and have left the constructor using id/code.

I can't find a way to use this new static method in the chain-provider in GeocoderLaravel, since as far I can see it is relying on the constructor in the provider setup.

Is this right, or is it something I have not figured out here?

Steps to Replicate

Adding Here in the geocoder.php:

'providers' => [
  Chain::class => [
    Here::class     => [
      env('I_ONLY_HAVE_A_HERE_KEY_NOT_AN_APP_ID_AND_APP_CODE'),
    ]
  ],
],

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions