• Categories
    • PHP
    • phpMyAdmin
    • PHPMailer
    • FFMpeg
    • PHPEXcel
    • PHPDoc
    • PHPUnit
    • CakePHP
    • CakePHP 2.0
    • Cake PHP 2.1
    • CakePHP Model
    • Facebook PHP SDK
    • composer-php
    • PHP 7
    • PHP GD
    All Categories
  • About

Get lat/lon from google maps url ftid (hex)

phpandroidgoogle-mapslocationhex


PHP Snippet 1:

!1s0x6ad63fbf56e24c27:0xe665b3308d32f379

PHP Snippet 2:

0xe665b3308d32f379  ---hex-to-dec--->  16601872622479930233

PHP Snippet 3:

function ftid_to_latlong($ftid)
{
    $fetch = curl_request("https://www.google.com/maps?ftid=$ftid");
    preg_match("/\"$ftid\",.*?(\d+\.\d+),(\d+\.\d+)/", $fetch, $geo);
    return [$geo[1], $geo[2]];
}

Related Snippets

Laravel s3 upload file with metadata using pre-signed url

PHP: Convert any string to UTF-8 without knowing the original character set, or at least try

How can I get new CSRF token in LARAVEL by using ajax

google content api for shopping

Refresh specific HTML content that retrieves data from MySQL

How to read laravel_session cookies saved in cookie memory of browser in client side?

How can I solve "laravel/horizon v1.1.0 requires ext-pcntl * -> the requested PHP extension pcntl is missing from your system"?

How to fix 'Data has already been sent to output, unable to output PDF file' in MPDF

Creating a config file in PHP

Why getting "Build step 'Execute shell' marked build as failure" error while creating a backup tar for files

Laravel Schedule not sending email

Problem with fetching data from database in Laravel

Create a new line whenever an array value reaches more than 10 characters

How to trim a video by 4 fragments to 4 seconds using the PHP-FFMpeg?

Adding reCAPTCHA v2 into my PHP file

About Contact Privacy policy Terms and conditions