schöenef/here-api-connector

一个用于连接here API服务器端的PHP库

v1.1.2 2023-03-07 00:04 UTC

This package is auto-updated.

Last update: 2024-09-20 00:28:00 UTC


README

一个用于连接here API服务器端的PHP库

安装

这是纯PHP集成,也存在一个针对Symfony的专用包

  1. 您需要一个here API开发者账户
  2. 通过composer安装库:$ composer require schoenef/here-api-connector:~1.0
  3. 设置
require_once __DIR__ . '/vendor/autoload.php';

$connector = new HereApiConnector([
    'apiKey' => 'YOUR API KEY',
    'lang' => 'de'
]);

print_r($connector->searchLocation('Schönhauser A', [
    'country' => 'DEU'
]));

选项

这是针对here API 6.2版本开发的,所有选项都有文档说明