Seriously - Does this Tutorial "Creating a Store Locator with PHP, MySQL & Google Maps" Really Work ???

577 views
Skip to first unread message

Seriously

unread,
Jun 15, 2011, 8:37:35 AM6/15/11
to google-map...@googlegroups.com
This tutorial 

Creating a Store Locator with PHP, MySQL & Google Maps


Does not work ?

Why would Google release a demo and tutorial that does not work?

Could someone please tell me why it is not working? 

Thanks

Chris Broadfoot

unread,
Jun 15, 2011, 9:09:36 AM6/15/11
to google-map...@googlegroups.com
You need to run it on a PHP server.

--
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/-/cfFnwr2KlVMJ.
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.



--
http://twitter.com/broady
Message has been deleted

Tejas B

unread,
Jun 16, 2011, 2:55:37 AM6/16/11
to Google Maps JavaScript API v3
It does need some work. Won't work right out of the box. I am working
on a mashup using this that works. It's too early to disclose more
information and i have the entire thing on localhost but I have got it
to function entirely based on this example.
You can access the genxml file only when you add lat long to the URL.

On Jun 16, 5:35 am, Seriously <miketiger...@gmail.com> wrote:
> Thanks Chris,
>
> This is Google demo versionhttp://gmaps-samples-v3.googlecode.com/svn/trunk/articles/phpsqlsearc...
>
> This is my version on PHP server *http://tinyurl.com/44gxntz*
>
> I replicate using tutorial
>
> http://code.google.com/apis/maps/articles/phpsqlsearch_v3.html
> Both look exactly the same with the same data. And both have the same error
> when enter zip code 90007.
>
> Both did not work

Chris Broadfoot

unread,
Jun 16, 2011, 4:10:19 AM6/16/11
to google-map...@googlegroups.com
Cool. I admit I haven't tried running this example (I didn't write it), but I'd gladly accept any patches that make it work.

--


--
You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" group.

Remi Grumeau

unread,
Jun 16, 2011, 6:23:19 AM6/16/11
to google-map...@googlegroups.com
I'm using this code, at least the MySQL request snippet and it kind of works. Times to times it doesn't give me the closest one but pick of the 3 first randomly. Perhaps there is something to improve / debug but anyway: it works. And i'm not talking about 25 or 200 miles here, but about dozens meters...

I could share an example but it's mobile only for now and based on window.geolocation for markers in my hometown Lille in France so i'm not sure this could really help much...

R.

JKurtock

unread,
Jun 16, 2011, 9:20:09 AM6/16/11
to Google Maps JavaScript API v3
When I run the google demo version, I do not get an error, but I do
get the map centered on -180, 0. This may be what "seriously" is
calling an error.

What appears to be happening is that the search url
(...phpsqlsearch_genxml.php?
lat=42.3803274&lng=-71.13891009999998&radius=25) is not returning an
xml string as designed, but rather the actual php code. Meaning that
it is likely a google server issue; that subdirectory is not (no
longer) set up to parse php code.

Of course, for seriously to get anything, he too would need the php
code, and it would need to be correctly set up on his/her server.

- Jeff

Tejas B

unread,
Jun 17, 2011, 3:37:38 PM6/17/11
to Google Maps JavaScript API v3
There is another stupid or serious issue. If you use the store locator
example as it is, with <!DOCTYPE HTML> the map wouldn't show up at
all.
Reply all
Reply to author
Forward
0 new messages