\GoogleGeocoding
Google Geocoding model that
- Author: Martijn Schenk
Synopsis
class GoogleGeocoding
extends DataObject
{
- // members
- protected static string $url = 'https://maps.googleapis.com/maps/api/geocode/json';
- protected $key;
- private static array $db = ;
- // methods
- public static DataObject|static getOrCreateGeocode()
- protected GoogleGeocoding request()
- protected string|bool performCurlRequest()
- protected mixed getConfig()
Hierarchy
Extends
- DataObject
Members
private
- $db — array
protected
- $key
—
string
The API key for the Google URL Shortener API - $url
—
string
The endpoint for the Google URL Shortener API
Methods
protected
- getConfig() — Retrieve something from the environment config
- performCurlRequest() — Perform the actual cURL request to the Google URL Shortener API
- request() — Request the short URL
public
- getOrCreateGeocode() — Retrieve or create a short URL