Mr Phuc

PHP, Symfony, Laravel, Zend, CI... Linux, LAMP...

Pages

  • Trang chá»§
  • About me

About Me

Phuc
View my complete profile

Saturday, 26 May 2012

Get Latitude/Longitude from an address (or Geocoding ) using PHP


$geocode=file_get_contents('http://maps.google.com/maps/api/
geocode/json?address=573/1,+Jangli+Maharaj+Road,
+Deccan+Gymkhana,+Pune,+Maharashtra,+India&sensor=false');

$output= json_decode($geocode);

$lat = $output->results[0]->geometry->location->lat;
$long = $output->results[0]->geometry->location->lng;
Posted by Phuc at 15:05
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

Shopify Aff

SEO Checklist and Keyword Research Template

Awesome Game

Google Search

Google
Custom Search

Blog Archive

  • ►  2023 (1)
    • ►  December (1)
      • ►  Dec 20 (1)
  • ►  2015 (2)
    • ►  September (1)
      • ►  Sept 24 (1)
    • ►  August (1)
      • ►  Aug 30 (1)
  • ►  2014 (1)
    • ►  December (1)
      • ►  Dec 10 (1)
  • ►  2013 (3)
    • ►  July (2)
      • ►  Jul 16 (1)
      • ►  Jul 15 (1)
    • ►  January (1)
      • ►  Jan 14 (1)
  • ▼  2012 (13)
    • ►  August (6)
      • ►  Aug 22 (1)
      • ►  Aug 21 (1)
      • ►  Aug 20 (1)
      • ►  Aug 16 (1)
      • ►  Aug 15 (1)
      • ►  Aug 08 (1)
    • ►  July (1)
      • ►  Jul 23 (1)
    • ▼  May (6)
      • ►  May 30 (1)
      • ▼  May 26 (1)
        • Get Latitude/Longitude from an address (or Geocodi...
      • ►  May 21 (4)
Copyright by MrPhuc
. Simple theme. Powered by Blogger.