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 6657783
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T01:48:47+00:00 2026-05-26T01:48:47+00:00

My Application is a php program, and I only have the address name, instead

  • 0

My Application is a php program, and I only have the address name, instead of the coordination on the map. But I find that the google map API requires the coordination to pin the address. How can I do so? Thank you.

I have the address:’觀塘%20牛頭角%20創業街%202號%20美亞工業大廈%202樓%202A%20202室’.
It can be search, and pin on the google map application, but when I using the google api to do geocoding, it shows me ZERO_RESULT:

http://maps.googleapis.com/maps/api/geocode/json?address=%E8%A7%80%E5%A1%98%20%E7%89%9B%E9%A0%AD%E8%A7%92%20%E5%89%B5%E6%A5%AD%E8%A1%97%202%E8%99%9F%20%E7%BE%8E%E4%BA%9E%E5%B7%A5%E6%A5%AD%E5%A4%A7%E5%BB%88&sensor=false

  • 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-05-26T01:48:48+00:00Added an answer on May 26, 2026 at 1:48 am

    Just convert the address into lat/lon first. You can either do this using javascript or you can use PHP (and cache it for later). Here is a simplified function to do that for you

    function postcode_to_latlon($postcode){
    
        $xml = simplexml_load_file('http://maps.googleapis.com/maps/api/geocode/xml?sensor=false&address='.$postcode);
    
        $lat = $xml->result->geometry->location->lat;
        $lon = $xml->result->geometry->location->lng;
    
        return array($lat, $lon);
    
    }
    

    This process is called geocoding.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a PHP application that displays a list of options to a user.
I have a PHP script that runs as a CGI program and the HTTP
I'm writing a web application (PHP) for my friend and have decided to use
In a PHP application I am writing, I would like to have users enter
I have a Php application using stream_socket_client(), to get data through tcp from a
Happens that I've ended up working on a big PHP program and I need
How can i integrate a google login Method to my PHP Application? how can
I wrote a PHP program that hooks into syslog-ng (via syslog-ng.conf ) and it's
hey, Since a few weeks I'm try to program a PHP-Application with the smarty
I have a working exec in php that executes a Jar file and returns

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.