Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
G

google-maps-provider

> 编程语言
Open source

[READ ONLY] Provider for Google maps

187 stars0 likes0 views
WebsiteGitHub

About

[READ ONLY] Provider for Google maps

Google Maps Geocoder provider

This is the Google Maps provider from the PHP Geocoder. This is a READ ONLY repository. See the main repo for information and documentation.

Usage

php
$httpClient = new \Http\Discovery\Psr18Client();

// You must provide an API key
$provider = new \Geocoder\Provider\GoogleMaps\GoogleMaps($httpClient, null, 'your-api-key');

$result = $geocoder->geocodeQuery(GeocodeQuery::create('Buckingham Palace, London'));

All requests require a valid API key, however google does have a free tier available. Please see this page for information on getting an API key.

Google Maps for Business

Previously, google offered a "Business" version of their APIs. The service has been deprecated, however existing clients can use the static business method on the provider to create a client:

php

$httpClient = new \Http\Discovery\Psr18Client();

// Client ID is required. Private key is optional.
$provider = \Geocoder\Provider\GoogleMaps\GoogleMaps::business($httpClient, 'your-client-id', 'your-private-key');

$result = $geocoder->geocodeQuery(GeocodeQuery::create('Buckingham Palace, London'));

Install

bash
composer require geocoder-php/google-maps-provider

Contribute

Contributions are very welcome! Send a pull request to the main repository or report any issues you find on the issue tracker.

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

PHP

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 18, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言