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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T11:34:24+00:00 2026-05-16T11:34:24+00:00

I’ve been having quite a bit of trouble with Google Maps API and a

  • 0

I’ve been having quite a bit of trouble with Google Maps API and a database driven map. In a previous question I had inquired about faster geocoding of addresses to a map and basically what I need to do is store Lat/Lng into the database and create a map from there, instead of geocoding while the map is loading.

However, I’m unsure exactly how to do this. I know the basic premise – 1) User registers and enters in their address. 2) Database should store the user’s information, along with the address. 3) Address needs to be geocoded and then added to the Lat/Lng fields in the database. 4)Markers can then be placed on the map by looping through a query involving the Lat/Lng fields.

Any ideas how to do this? I’m using ColdFusion, SQL Server.

  • 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-16T11:34:25+00:00Added an answer on May 16, 2026 at 11:34 am

    You can use Google’s Geocoding Service for this. The API is dead simple. You send an address in the url and it returns some xml with the geocoded result. Even better, there’s a project on RiaForge called Google Geocoder v3 that will do all the work for you.

    Here’s some sample code of the CFC:

    <cfinvoke component="googlegeocoder3" method="googlegeocoder3" returnvariable="variables.geocode_query1">     
      <cfinvokeargument name="address" value="1600 Amphitheatre Parkway, Mountain View, CA">
      <cfinvokeargument name="ShowDetails" value="false">
    </cfinvoke>
    
    <cfdump var="#variables.geocode_query1#">
    

    As for when to do the geocoding, you have two options. One is just to do it when they register – take the address from the registration form, call the geocoding service to get the lat/lng and then save everything to the database. The other option is to save the address from registration and then have a separate scheduled task to periodically checks and geocodes any un-geocoded addresses.

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

Sidebar

Related Questions

No related questions found

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.