fgct-map/maps-api 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

fgct-map/maps-api

Composer 安装命令:

composer require fgct-map/maps-api

包简介

Fgct Maps API

README 文档

README

Installation

composer require fgct-map/maps-api:dev-main

Usage

// Import the class namespaces first, before using it directly
use FGCTApi\GoogleMaps\Api\GoogleMapsApi;
use FGCTApi\Baidu\Api\BaiduApi;
use FGCTApi\Goong\Api\Goong;

$ggMap = new GoogleMapsApi("<your-key>");
$baidu = new BaiduApi("<your-key>");


// Baidu
$baidu = new BaiduApi('<your ak>');

$response = $baidu->driving_route("31.25255, 121.45315", "31.30478, 120.57562", [
    'output' => 'json'
]);

$response = $baidu->geocoding("上海市", [
    'output' => 'json'
]);

// Goong
$goong = new Goong('<your key>');

$response = $goong->geocode("Hà Nội, vietnam");

$response = $goong->autocomplete("Hà Nội");

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-05-23