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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T00:34:44+00:00 2026-06-05T00:34:44+00:00

I am geocoding multiple address from an XML file to get the lat/lng to

  • 0

I am geocoding multiple address from an XML file to get the lat/lng to plot a marker on a map. It works fine with about 15 addresses but today I checked and there are 88 addresses and it takes a while to load the page. What’s happening is a user clicks the link to the map page and the browser just spins until all the addresses have been geocoded, then the page loads. I’m having to use System.Threading.Thread.Sleep(150); before each call to the google service to avoid the query limit error. Is there anything I can do to make this load the page then load the addresses?

  • 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-05T00:34:47+00:00Added an answer on June 5, 2026 at 12:34 am

    As you’ve found, Google’s geocoding service isn’t for requests en masse. In fact, it’s against their terms of service to use the service for bulk downloads or processing batch requests.

    What you ought to look for is a service that doesn’t have such low limits and allows you to submit batch requests to the API. For disclosure purposes, I work for SmartyStreets, and we provide such an API called LiveAddress.

    It sounds like you’re submitting as many requests as there are addresses to geocode and plot. 15-100 requests will take anywhere from one to maybe 10 or 15 seconds including network latency. I’ve seen your situation quite a few times in my line of work and it’s a legitimate question.

    What I’d recommend doing is having the server push down the page to the client, then have Javascript load the coordinates and plot the points. (C.Evenhuis suggested this in his comment.) While this will load the page earlier, it still should spin some sort of "Loading" animation, which will still make the user wait. Without an upgraded license with Google, your limits will remain.

    To overcome this, you can look for an API that has a few key features:

    • Geo-distributed. This reduces network latency and improves performance.
    • Terms of service that allow you to perform batch requests or geocode en masse
    • Support for multiple addresses per request, meaning you only have to submit one or two requests per page load, even for up to 100 or 200 addresses
    • Preferably, a way to verify the addresses even exist before plotting them. Google approximates addresses, it doesn’t verify them.
    • Permission to cache/store the values for more than just a temporary amount of time for optimizing your scripts. Google’s TOS won’t let you store the results except only temporarily to optimize performance at runtime.

    You can use LiveAddress as an example of what to look for, and see if it meets your needs. It supports up to 100 addresses per single request, so your wait time goes from several seconds to a few milliseconds. You can store the results you download basically indefinitely, and will only return coordinates for addresses that actually exist, or it will fix addresses that aren’t quite correct. Let me know if you have any questions about it.

    As a thought, even if you don’t want the client-side to geocode the addresses, your C# code can do this and bundle all the addresses into one request.

    [Here’s some sample C# code on GitHub]

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

Sidebar

Related Questions

HI..I doing geocoding in android map.(i.e)getting address as input from user & locate that
I am using http://code.google.com/apis/maps/documentation/geocoding/ api from google to get geolocation based on address. I
I am using reverse geocoding in Google Maps to get an address from a
I try to get some data from Google Geocoding API with C# and ASP.net.
Im trying out the Google Maps API Geocoding feature.The map loads fine, but im
Possible Duplicate: Reverse Geocoding With Google Map API And PHP To Get Nearest Location
I have a simple object that get's geocoding data from the Google Maps API
I have xml file that contains the URLs for geocoding requests to Google. I
Google offers a wonderful REST interface for geocoding and reverse geocoding an address. My
I have found this code for reverse geocoding: var point = new GLatLng (lat[1],long[1]);

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.