troubleshooting Question

Plot Locations on Google Map

Avatar of APD Toronto
APD TorontoFlag for Canada asked on
4 Comments1 Solution28 ViewsLast Modified:
Hello Experts,

I have MySQL table with Canadian addresses and Postal Codes, and based on the user search, I would like to list these locations on the page (I know how), but also plot them on Google Maps and somehow associate each with those listed. Maybe somehow number each marker, and I am wondering if someone can help me get started.

I already got my Billing account setup and my API key. Under My Project I added Google Maps JS library and removed everything else, such as Google cloud.

I read that I need to plot using longitude and latitude, but I only have Postal Codes and addresses, so I am assuming that I need to use the API somehow to get long/lat and save them in the DB, so I don't overuse my API.

As well, for security reasons how do I store my API key in php and not in js, although I did setup IP restrictions. If this good enough?

Finally, would I be able to use the API in php and not in js as this is more convenient to save the results back to the DB?
APD Toronto
Software Developer

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 4 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 4 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros