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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T05:02:53+00:00 2026-06-13T05:02:53+00:00

Alright so since I posted this the first time and I failed hardcore at

  • 0

Alright so since I posted this the first time and I failed hardcore at properly explaining what I was looking to do, here’s my second attempt.

On my site I’ve got Google Maps V3 Javascript implemented. A predefined set of points is created (from within the CMS) and pushed to the map via an array with the required information. What my client is wondering is if the users of this site can execute a search to find an existing point from this array. I was thinking that this was going to involve using the Places library but this returns all valid results from google, not from the array of custom points that are being created in the CMS.

$('#points-search').submit(function(){
    geocoder = new gm.Geocoder();

    var searchAddress = $(this).children('input[type="text"]').val();
    var searchPoints = [];

    if (geocoder){
        geocoder.geocode({'address' : searchAddress}, function(results, status){
            if (status == gm.GeocoderStatus.OK){
                $.each(results, function(i, result){
                    searchPoints.push({"lat" : result.geometry.location.Xa, "lng" : result.geometry.location.Ya});
                });
            } else {
                                    alert('nothing found!')
            }
        });
    }

    return false;
});

That code isn’t yet finished, of course. Theoretically what I’d like to do is, say, if I search for “4777 Avenue Pierre-de Coubertin”, it would find the proper point in my $points array instead of finding that existing address in Montreal AND all the other points in the world with that address.

lat: 45.5
lng: -73.553459
location: "2 Rue de la Commune Ouest, <br />Montreal, QC H2Y 2E2, Canada"
name: "Montreal Science Centre"
pointType: "Community"
url: "/points/item/montreal-science-centre"

lat: 45.514229
lng: -73.531342
location: "4777 Avenue Pierre-de Coubertin<br />Montreal, QC H1V 1B3, Canada"
name: "Montreal Biodome"
pointType: "Curated"
url: "/points/item/montreal-biodome"

I hope this is a bit clearer of a description of what I’m trying to do. Thanks very much.

  • 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-13T05:02:54+00:00Added an answer on June 13, 2026 at 5:02 am

    What my client is wondering is if the users of this site can execute a search to find an
    existing point from this array.

    The answer is yes. What criteria are involved in the search? Data in the infowindow? Closest point? Do you have a database that might do the search more efficiently?

    Theoretically what I’d like to do is, say, if I search for “4777 Avenue Pierre-de
    Coubertin”, it would find the proper point in my $points array instead of finding that
    existing address in Montreal AND all the other points in the world with that address.

    You have choices:

    1. search the text in the infowindows for that string (or the properties of your objects for that address, you might want to make a version without the HTML formatting to make the search easier)
    2. geocode the input address and find the closest point in your markers array (assuming the result was in your area of interest).
    3. something else or a combination of the above.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

[EDIT] Alright, I edited this post since the code I posted back then had
Alright I don't see why this isnt working. It seems pretty simple. Here is
Alright, so here is the situation... Say I have a navbar for a site,
Alright, so i'm not sure if im converting user input time to GMT properly.
Alright I was looking at this in python but I just like ruby better.
Alright. So I figure it's about time I get into unit testing, since everyone's
Alright, I guess this question has been asked a lot of times here. I
Alright, this is driving me nuts because my regex is working on Rubular, but
Alright so I have no idea how to even begin doing this But basically
Alright I created some custom classes for my project sourced from this tutorial ,

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.