Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Problem with GMap 2.3 - PHP Google Maps

Posted on 2011-04-19
2
Medium Priority
?
390 Views
Last Modified: 2012-05-11
I had bought a script from here: php google maps and have been using the attached php script. It was working and than apparently stopped working with this error "602: Unable to Geocode this address"

Can anyone tell me if there is another solution? Or if I can use another method besides $gmap->showLocation($cross,$town,$county$state);
Thanks!
<?php
	require_once('gmap.php');
        $gmap = new GMap();
	$cross = $result['cross_streets'];
	$county = $result['county'];
	$town = $result['town'];
	$state = 'New York';
        $gmap->showLocation($cross,$town,$county$state);

?>

Open in new window

0
Comment
Question by:genesisvh
2 Comments
 
LVL 111

Accepted Solution

by:
Ray Paseur earned 2000 total points
ID: 35432264
What was in the method call here:

$gmap->showLocation($cross,$town,$county$state);

Can you print out the strings with var_dump() and show us what your script passed to the GMap class?
0
 

Author Closing Comment

by:genesisvh
ID: 35692905
I found the solution, but thanks for responding.
0

Featured Post

Prep for the ITIL® Foundation Certification Exam

December’s Course of the Month is now available! Enroll to learn ITIL® Foundation best practices for delivering IT services effectively and efficiently.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Since pre-biblical times, humans have sought ways to keep secrets, and share the secrets selectively.  This article explores the ways PHP can be used to hide and encrypt information.
Many old projects have bad code, but the budget doesn't exist to rewrite the codebase. You can update this code to be safer by introducing contemporary input validation, sanitation, and safer database queries.
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
Suggested Courses
Course of the Month21 days, 7 hours left to enroll

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question