nekland/places-api

简化Google Places API使用!

1.1.0 2015-04-24 09:23 UTC

This package is auto-updated.

Last update: 2024-08-26 00:54:38 UTC


README

Scrutinizer Code Quality Build Status

此库可以帮助您请求Google Places API。

安装

很简单!只需使用以下composer命令行。

composer require 'nekland/places-api:~1.0'

使用方法

<?php

use Nekland\PlacesApi\Places;

$api = new Places();

$api->useAuthentication('PublicApiAccess', ['key' => 'MY KEY']);

$result = $api->getSearchApi()->search('49.8445057,3.2912589', 1000);

查看认证部分了解如何获取密钥

谁需要文档?NeklandPlacesApi支持为兼容的IDE提供自动完成功能。

如果您的IDE没有,没问题:文档在此处可用 这里