I am trying to find a way to assign a JSON value to return to the Google Map API when passing an address. I would search Google, but I’m only a few months deep in PHP and really don’t know which keywords to use. I don’t even know what is JSON?
In any case, I found this article that explains how to request Google Maps with an address and return its GPS location. When I checked it in my browser, text will appear. I just don’t know what to use to display and display the browser for an object in a PHP page.
This is a Google Maps request:
http://maps.google.com/maps/geo?q="ADDRESS"&output=csv&oe=utf8
This is my function where I want to use this:
public function build_me($this_address)
{
$query = $this_address["Line1"].",".$this_address["Line2"].",".
$this_address["City"].",".$this_address["State"].",".$this_address["Zip"];
$this->latitude =
$this->longitude =
}
This is the article I mean:
http://martinsikora.com/how-to-get-gps-coordinates-from-an-address
: ? ?
, - !