• 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

How to modify CSS in a specific page of the WP admin dashboard (backend)

Which is faster php date functions or carbon?

Nginx RTMP not recording

Is it possible to change the table name in the migration file-laravel

How to get array values using foreach in laravel

Handling expired token in Laravel

how to get value from array in laravel

Parameter is not sent to Laravel route in Ajax

error:14094410:SSL routines:ssl3_read_bytes:sslv3 alert handshake failure

Sentry on Symfony: how to exclude `NotFoundHttpException`

How to add class name to an existing tag in php

PHP code for generating decent-looking coupon codes (mix of letters and numbers)

How to show a popup modal in codeIgniter?

How to redirect to another page after n seconds in wordpress without using javascript?

Wordpress how to get the post thumbnail inside a figure tag

About Contact Privacy policy Terms and conditions