e.g.

<?php

   // Your Google Maps API key
   $key = "YOUR_KEY_HERE";

   // Desired address
   $address = 
"http://maps.google.com/maps/geo?q=411+Woody+Hayes+Drive,+Columbus,+OH&output=xml&key=$key";;

   // Retrieve the URL contents
   echo htmlspecialchars(file_get_contents($address));

?>


aobve code works but the below one doesn't :(

<?php

   // Your Google Maps API key
   $key = "YOUR_KEY_HERE";

   // Desired address
   $address = 
"http://maps.google.com/maps/geo?q=Columbia,+Missouri&output=xml&key=$key";;

   // Retrieve the URL contents
   echo htmlspecialchars(file_get_contents($address));

?>

Hope that clarifies my query

Akshay


On Thu, Feb 10, 2011 at 5:24 AM, Akshay Dave <[email protected]> wrote:

> for e.g.
>   I am getting Columbia, Missouri from a linked in OAuth API and I want to
> pass to google api to get geocode..
>
> Thanks
> Akshay
>
>
> On Wed, Feb 9, 2011 at 10:23 PM, Chris Broadfoot <[email protected]> wrote:
>
>> On Thu, Feb 10, 2011 at 2:43 PM, Akshay Dave <[email protected]> wrote:
>>
>>>    All I was saying that I don't have address but just city and state
>>> which are not working :(
>>>
>>
>> ... for example?
>>
>> --
>> http://twitter.com/broady
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Google Maps API V2" group.
>> To post to this group, send email to [email protected].
>> To unsubscribe from this group, send email to
>> [email protected].
>> For more options, visit this group at
>> http://groups.google.com/group/google-maps-api?hl=en.
>>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps API V2" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-maps-api?hl=en.

Reply via email to