mddanish/geocode 问题修复 & 功能扩展

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

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

mddanish/geocode

Composer 安装命令:

composer require mddanish/geocode

包简介

Google map API for geocode

README 文档

README

A Composer Package For Google Map Geocode API 🎉

Features

  • Zip Code From Address
  • Latitude From Address
  • Longitude From Address
  • Latitude & Longitude From Address
  • Distance From Address
  • Address From Latitude & Longitude
  • Plus Code From Latitude & Longitude

Installation

It is available on Packagist, and installation via Composer is the recommended way to install. Just add this line to your composer.json file:

"mddanish/geocode": "~1.0"

or run

composer require mddanish/geocode

Note that the vendor folder and the vendor/autoload.php script are generated by composer. They are not the part of this package.

A Simple Example

<?php

use mddanish\TechStreet\GeoCode;
require_once "vendor/autoload.php";

$obj = new GeoCode();
echo $obj->latlonFromAddress('New Delhi','YOUR_API_KEY');

Available Functions

zipcodeFromAddress($address, $key);

latFromAddress($address, $key);

lonFromAddress($address, $key);

latlonFromAddress($address, $key);

distanceFromAddress($addressFrom, $addressTo, $unit, $key);

$unit - "Mi", "Km"

addressFromLatlon($latitude, $longitude, $key);

pluscodeFromLatlon($latitude, $longitude, $type, $key);

$type - "global", "compound"

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-10-12

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固