Download the PHP package tekintian/geo_utils without Composer

On this page you can find all versions of the php package tekintian/geo_utils. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package geo_utils

地图坐标转换工具

WGS-84:是国际标准,GPS坐标(Google Earth使用、或者GPS模块) GCJ-02:中国坐标偏移标准,Google Map、高德、腾讯使用 BD-09:百度坐标偏移标准,Baidu Map使用 Web Mercator 网络墨卡托投影坐标,Web Mercator是一个投影坐标系统,其基准面是 WGS 1984 ; EPSG,即 European Petroleum Standards Group 欧洲石油标准组织

使用方法:

  1. 载入本工具类
composer require tekintian/geo_utils
  1. 使用本工具
<?php

// 载入自动加载: 如果使用框架的话这个步骤可以忽略。
require_once __DIR__ . '/vendor/autoload.php';

use \tekintian\geo_utils\GeoCoordinate;

// 实例化工具
$geoc= new GeoCoordinate();

// GPS坐标转国测局火星坐标
echo $geoc->gpsToGcj02(25.11624,102.75205);

// 国测局火星坐标转GPS坐标
echo $geoc->gcj02ToGps(39.114347,116.82339);

echo "<hr>";
// 百度坐标 26.8807910,100.2284620 转国测局坐标
$gcj=$geoc->bd09ToGcj02(26.8807910,100.2284620);
echo "火星坐标:".$gcj['lat'].", ".$gcj['lng'];
echo "<hr>";
$gps=$geoc->gcj02ToGpsExactly($gcj['lat'],$gcj['lng']);
echo "<br>GPS坐标:".$gps['lat'].", ".$gps['lng'];

GCJ-02:中国坐标 逆地理编码

// 高德地图逆地理编码 
// https://lbs.amap.com/api/webservice/guide/api/georegeo
$key = 'xxxxxxxxxxxxx'; // 高德地图申请到的key 
$location ='116.481488,39.990464'; //经纬度坐标
$geo_info = \tekintian\geo_utils\Cjc02GeoCode::getGeoInfo($key,$location);

sources

TekinTian QQ:932256355

云南网 http://dev.yunnan.ws


All versions of geo_utils with dependencies

PHP Build Version
Package Version
No informations.
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package tekintian/geo_utils contains the following files

Loading the files please wait ....