承接 shyna0890/visicom-maps-services 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

shyna0890/visicom-maps-services

Composer 安装命令:

composer require shyna0890/visicom-maps-services

包简介

PHP client library(SDK) for Visicom Maps API Web Services

README 文档

README

Visicom Maps Services for PHP


PHP client library(SDK) for Visicom Maps API Web Services

REQUIREMENTS

This library requires the following:

  • PHP 5.4.0+|7.0+
  • guzzlehttp/guzzle 5.3.1+|6.0+
  • Visicom Maps API key

API keys

Each Visicom Maps Web Service request requires an API key. API keys are freely available with a Google Account at https://api.visicom.ua/accounts/pub/dapi.

INSTALLATION

Run Composer in your project:

composer require shyna0890/visicom-maps-services

Then you could call it after Composer is loaded depended on your PHP framework:

require __DIR__ . '/vendor/autoload.php';

use shyna0890\visicomMaps\Client;

USAGE

Before using any Visicom Maps Services, first you need to create a Client with configuration, then use the client to access Visicom Maps Services.

Client

Create a Client using API key:

$vmaps = new \shyna0890\visicomMaps\Client(['key'=>'Your API Key']);

Language

You could set language for Client for all services:

$vmaps = new \shyna0890\visicomMaps\Client(['key'=>'Your API Key', 'lang'=>'ua']);

Changing language during execution:

$vmaps->setLanguage('en');
// ...

Directions API

// Request directions via public transit
$directionsResult = $vmaps->directions('Raisy Okipnoi Street', 'Kiev', [
    'departure_time' => time(),
    ]);

Geocoding API

// Geocoding an address
$geocodeResult = $vmaps->geocode('Raisy Okipnoi Street Kiev');

// Look up an address with reverse geocoding
$reverseGeocodeResult = $vmaps->reverseGeocode([ 30.59355321604309,50.4499695032737]);

统计信息

  • 总下载量: 31
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-11-01