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

  • Home
  • SEARCH
  • 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 5839797
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T11:38:23+00:00 2026-05-22T11:38:23+00:00

This question is regarding the google Maps API geocoding, I’m able to geocode an

  • 0

This question is regarding the google Maps API geocoding, I’m able to geocode an address and show the location, but this works when the address is valid.

When it’s not valid(there is an error),right now, I’m showing a smart message which says there is an error retrieving the location, but the requirement is to show the nearest possible location to the entered address.

How do I get the marker on next best location?

here’s what I’ve tried:

Split the address, based on commas, and geocode each substring, and get the marker on the 1st match, but this resulted in some huge errors.

What I’m thinking of doing now is:

geocode the zip-code using yahoo maps API, but the only problem is I don’t think it will be close to what the user has entered as his address.

Any solutions?

  • 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-22T11:38:26+00:00Added an answer on May 22, 2026 at 11:38 am

    Tarun , i am not sure which google api you are using. But Google geocoding api does allow for partial address searches and returns matches sorted by best fit. So displaying best location should be really simple. Take a look at this link below. It returns xml but you can ask for json by replacing xml in url with json. All you have to do insert your partial address in this url.

    http://maps.googleapis.com/maps/api/geocode/xml?address=holly%20hall&sensor=false

    So if this url doesnt give you any results, then its probably safe to assume that address doesn’t exist.
    Hope that hepls

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

Sidebar

Related Questions

This is a question regarding Unix shell scripting (any shell), but any other "standard"
First of all there is a partial question regarding this, but it is not
Disclaimer: This is for a homework assignment, but the question is not regarding the
I have a question regarding map api. I was using the the google map
It is a question regarding Subgurim Google Maps wrapper in ASP.NET. I would like
This is a very specific question regarding MySQL as implemented in WordPress . I'm
Question regarding how to setup dbase relationships (newbie, this may be trivial) Followed the
I'm implementing Bing Maps on a page (I'd prefer Google Maps, but it's not
I previously posted this question ( Reading Google docs spreadsheet ) and got a
I've seen this question regading the importing of js-files related to the tag content

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.