Skip to content

Instantly share code, notes, and snippets.

View toin0u's full-sized avatar
🚀

Antoine Kirk toin0u

🚀
View GitHub Profile
<?php
/**
* This file is part of the Geocoder package.
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @license MIT License
*/
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=1">
<style type="text/css">
div { display: none; font-size: 15px; color: #FF0000; }
#title { display: block; color: #000000; }
/* iPhone 3 portrait */
<?php
require 'vendor/autoload.php';
$geocoder = new \Geocoder\Geocoder();
$adapter = new \Geocoder\HttpAdapter\SocketHttpAdapter();
$provider = new \Geocoder\Provider\GoogleMapsProvider($adapter);
$geocoder->registerProvider($provider);
try {