Search My Map by a zipcode

138 views
Skip to first unread message

IFI DNA LAB

unread,
Jan 9, 2012, 2:35:45 PM1/9/12
to google-map...@googlegroups.com
I created a map that has a list of all of our affiliate collection sites.  When a customer calls in and gives us the zip code that they are located in, we need to be able to locate the nearest affiliate to our customer.  My map is located http://maps.google.com/maps/ms?msid=207916841160809082102.0004b3acb32bdc53b2020&msa=0
 
I like how walgreens is set up - to put in your zip code - then it provides a list on the left and a google map on the right - how do i get this?
Message has been deleted

Jeff Lake

unread,
Jan 9, 2012, 3:11:51 PM1/9/12
to google-map...@googlegroups.com
you will need your own Database of zip codes,
then the lat/lon center point of each area,
and finally the lat/lon of your affiliate sites ..
do the comparison,
send the lat/lon of nearest to the API ..
-Jeff Lake
MichiganWxSystem.com
WeatherMichigan.net
TheWeatherCenter.net
GRLevelXStuff.com

On 1/9/2012 2:35 PM, IFI DNA LAB wrote:
I created a map that has a list of all of our affiliate collection sites.  When a customer calls in and gives us the zip code that they are located in, we need to be able to locate the nearest affiliate to our customer.  My map is located http://maps.google.com/maps/ms?msid=207916841160809082102.0004b3acb32bdc53b2020&msa=0
 
I like how walgreens is set up - to put in your zip code - then it provides a list on the left and a google map on the right - how do i get this?
--
You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-maps-js-api-v3/-/pKxgAYYN2rwJ.
To post to this group, send email to google-map...@googlegroups.com.
To unsubscribe from this group, send email to google-maps-js-a...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.

Andrew Leach

unread,
Jan 9, 2012, 3:32:29 PM1/9/12
to google-map...@googlegroups.com
On 9 January 2012 20:11, Jeff Lake <ad...@michiganwxsystem.com> wrote:
> you will need your own Database of zip codes,
> then the lat/lon center point of each area,
> and finally the lat/lon of your affiliate sites ..
> do the comparison,
> send the lat/lon of nearest to the API ..

You could use the Google geocoder for the user's zipcode. It's a
standard store locator application. I'm not sure you can use My Maps
for it, but the example is fully worked.
http://code.google.com/apis/maps/articles/phpsqlsearch_v3.html

Reply all
Reply to author
Forward
0 new messages