Static Maps API, Google map to image, GPS

undefined


Php code , address for

<?php
$Address = "Oknha Tep Phan";
$City = "Phnum Penh";
$City = "Cambodia";
$address = str_replace(" ","+",$Address1) . ",+" . str_replace(" ","+" . str_replace(" ","+",$City) . ",+" . str_replace(" ","+",$Country);
$address = strtr($address, $normalizeChars);
/*Query Google Geocoding API */
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "http://maps.googleapis.com/maps/api/geocode/xml?address=".$address."&sensor=false");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$xml = curl_exec($ch);

//Use SimpleXML library to get the data from the XML string
$xml = new SimpleXMLElement($xml);
$lat = $xml->result[0]->geometry[0]->location[0]->lat;
$lng = $xml->result[0]->geometry[0]->location[0]->lng;
$coords = $lat . "," . $lng;
curl_close($ch); //Close the CURL instance, to keep things tidy
?>


Code to show map in image
http://maps.google.com/maps/api/staticmap?center=11.562273,104.919398&zoom=15&size=500x300&maptype=roadmap&&markers=color:red|label:A|11.562273,104.919398&sensor=false

Results
Save Url in CSV using IMACROS, iMacro JavaScript Extracting values ការប្រើ iMacro ដើម្បីបង្កើត csv file and adding new line - (0 comments)
DRAG AND DROP NESTABLE MENU ON PHP AND MYSQL AND JQUERY - (4 comments)
How to create Menu and Sub menu, How to use Recursion Function in Codeigniter recursive function, Php, MySQL - (0 comments)

2 comments:

Anonymous said...

I јust cоulԁ not leave yοur site prioг to suggеsting that Ι аctually enjοyed
the standаrd infо a persоn supply on
yоur gueѕts? Is gοnna be again
frequentlу tο investigate сrosѕ-checκ new posts

Visit my ωebрage kennedy death car

Anonymous said...

Тhese аге in faсt grеаt iԁеаs in concеrnіng blogging.
You hаve tοucheԁ some nісe things heгe.

Anу wаy kееp up wrinting.


Аlѕο vіsit mу web site - rent a home in plano

Post a Comment

Followers

រឿង ដែលខានមើលមិនបាន

Contact us

Name

Email *

Message *

Your Language

Online

Copyright 2009 Simplex Celebs All rights reserved Designed by www.sruol9.com