Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7882789
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T04:22:06+00:00 2026-06-03T04:22:06+00:00

I am trying to find a way to assign the JSON value Google Map’s

  • 0

I am trying to find a way to assign the JSON value Google Map’s API Returns when passed an address. I would search Google, but I am only a few month deep into PHP and really don’t know what keywords to use. I really don’t even know what a JSON is?

Anyway, I found this article that explains how to query Google Maps with an address and have it return a GPS Location. When I tested it in my browser, the text appears. I just don’t know what to use to take what the browser is displaying and assign in to an Object in a PHP page.

This is the Google Maps Query:

http://maps.google.com/maps/geo?q="ADDRESS"&output=csv&oe=utf8

This my function where I want to use this:

//Queries Google Map's API with an address and assigns the returned GPS Location 
//to this Object
public function build_me($this_address)
{
    //Builds the query from the address array to send to the Goole Maps API
    $query = $this_address["Line1"].",".$this_address["Line2"].",".
             $this_address["City"].",".$this_address["State"].",".$this_address["Zip"];

    //Location_Array = http://maps.google.com/maps/geo?q=$query&output=csv&oe=utf8
    $this->latitude  = //Location_Array['Something'];
    $this->longitude = //Location_Array['Something'];
}

This is the article that I am referring to:
http://martinsikora.com/how-to-get-gps-coordinates-from-an-address

My question is, how would I go about doing this? Are there any good tutorials on this?
Thanks in advance for anyone pointing me in the right direction!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T04:22:07+00:00Added an answer on June 3, 2026 at 4:22 am

    Actually the URL you are showing will produce a CSV output (that is why it has the output=csv parameter). You can see it if you simply insert it into your browser (Downing Street 10):

    200,8,45.9797693,-66.5854067

    Here are some useful resources to get the job done:

    • cURL to make the call to the Google API
    • cURL Tutorial
    • str_getcsv() to parse a CSV string into a PHP array
    • (json_decode() to translate JSON to PHP arrays/objects – just in case you’re gonna need it later)
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to find a way to mass apply these namespaces, as this would
I am trying to find a generic way to assign values to a property
I'm trying to find a way to use a hash map in R, and
Trying to find a way to send a POST HTTPS request from Python to
Struggling trying to find best way to reverse a GUID to username. Any help?
I'm trying to find a way to detect when a flash drive has been
I'm trying to find a way to negate sentences based on POS-tagging. Please consider:
I am trying to find a way of center aligning a block containing an
I was trying to find a way to remove the math.random function from this
I'm trying to find a way to locate all geometry that intersects a given

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.