定制 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]);

统计信息

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

GitHub 信息

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

其他信息

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

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固