Problem with GMap 2.3 - PHP Google Maps

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

Can anyone tell me if there is another solution?
        $gmap = new GMap();
	$cross = $result['cross_streets'];
	$county = $result['county'];
	$town = $result['town'];
	$state = 'New York';
        $gmap->showLocation($cross, $county, $state );


Open in new window

Question by:genesisvh

    Author Comment

    LVL 107

    Accepted Solution

    error "602: Unable to Geocode this address"

    Uhh, what address?  Did you try printing out the data you passed to the $gmap->showlocation() method?  What did it contain?

    Author Comment

    Actually found the solution I was using too many variables and all you need is the class $address. Thanks Ray!

    Author Closing Comment

    Thanks for the quick response

    Featured Post

    Hire Freelancers to Complete JavaScript Projects

    Source the talented Expert Exchange community
    for top quality work on your JavaScript projects.

    Hire the best. Collaborate easily. Get quality work.

    Join & Write a Comment

    Introduction HTML checkboxes provide the perfect way for a web developer to receive client input when the client's options might be none, one or many.  But the PHP code for processing the checkboxes can be confusing at first.  What if a checkbox is…
    The task A number given should be formatted for easy reading by separating digits into triads. Format must be made inline via JavaScript, i.e., frameworks / functions are not welcome. So let’s take a number like this “12345678.91¿ and format i…
    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.

    731 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

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now