Error 620 on geocoding

265 views
Skip to first unread message

Chowdotya Raito

unread,
Jan 4, 2012, 1:00:42 AM1/4/12
to google-maps-ap...@googlegroups.com
today i try to reverse geocoding a coordinate, but it's return 620 error code.

this is my first code :

    $address = $lat.",".$long;   
    $url = "http://maps.google.com/maps/geo?q=".$address."&output=csv&sensor=true";
    $ch = curl_init();

    curl_setopt($ch, CURLOPT_URL, $url);
    curl_setopt($ch, CURLOPT_HEADER,0);
    curl_setopt($ch, CURLOPT_USERAGENT, $_SERVER["HTTP_USER_AGENT"]);
    curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
     
    $data = curl_exec($ch);
    curl_close($ch);

and i also try using this, but still return the same error code :

    $json = file_get_contents("http://maps.google.com/maps/geo?q=".$latitude.",".$longitude."&output=json");   
    echo 'JSON = '.$json.'<br>' ;
    if ($json != '{}')
    {           
        $jsondata = json_decode($json,true);
        if(is_array($jsondata )&& $jsondata ['Status']['code']==200)
        {
            //return $jsondata['Placemark'][0]['address'] ;
            $addr = $jsondata['Placemark'][0]['address'] ;
            $prec = explode(',',$addr) ;
            $city = explode(' ',$prec[1]) ;
            return $prec[0].', '.$city[1] ;
        }
    }

anyone can tell me what should i do?

Barry Hunter

unread,
Jan 4, 2012, 11:59:21 AM1/4/12
to google-maps-ap...@googlegroups.com
I suggest you lookup what error code 620 means. 


--
You received this message because you are subscribed to the Google Groups "Google Maps API Web Services" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-maps-api-web-services/-/aFWdwKaairgJ.
To post to this group, send email to google-maps-ap...@googlegroups.com.
To unsubscribe from this group, send email to google-maps-api-web-...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-maps-api-web-services?hl=en.

james pruett

unread,
Jul 29, 2012, 1:50:54 PM7/29/12
to google-maps-ap...@googlegroups.com
I don't know if this will help,
but I have some working/similar code you can download here:

http://www.wikispeedia.org/speedlimit

In your browser, click on tools->viewSource and the php code is there...
Good luck.
-cellurl




On Sat, Jul 28, 2012 at 4:05 PM, trocatout <troc...@gmail.com> wrote:
> hi
>
> I've the same problem. I've found the doc about 620 google code but my
> number of daily test is about 30... so i'm very far of the 15000 limits of
> requests...
>
> I don't understand.
>
> Could you help me ?
>
> Thank you.
> https://groups.google.com/d/msg/google-maps-api-web-services/-/6dCE-0FGPiUJ.

Trocatout

unread,
Jul 29, 2012, 3:31:10 PM7/29/12
to google-maps-ap...@googlegroups.com
the link above doesn't work !

----- Original Message -----
From: "james pruett" <gpsc...@gmail.com>
To: <google-maps-ap...@googlegroups.com>
Sent: Sunday, July 29, 2012 7:50 PM
Subject: Re: [Google Maps API Web Services] Error 620 on geocoding


I don't know if this will help,
but I have some working/similar code you can download here:

http://www.wikispeedia.org/speedlimit

In your browser, click on tools->viewSource and the php code is there...
Good luck.
-cellurl




On Sat, Jul 28, 2012 at 4:05 PM, trocatout <troc...@gmail.com> wrote:
> hi
>
> I've the same problem. I've found the doc about 620 google code but my
> number of daily test is about 30... so i'm very far of the 15000 limits of
> requests...
>
> I don't understand.
>
> Could you help me ?
>
> Thank you.
>
>
>
> Le mercredi 4 janvier 2012 17:59:21 UTC+1, Barry Hunter a �crit :

Chris Broadfoot

unread,
Jul 29, 2012, 9:20:18 PM7/29/12
to google-maps-ap...@googlegroups.com
Are you deploying on a shared host? It's possible someone is issuing geocoding requests from the same IP address.

--


On Mon, Jul 30, 2012 at 5:31 AM, Trocatout <troc...@gmail.com> wrote:
the link above doesn't work !

----- Original Message ----- From: "james pruett" <gpsc...@gmail.com>

To unsubscribe from this group, send email to
--
You received this message because you are subscribed to the Google Groups
"Google Maps API Web Services" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/google-maps-api-web-services/-/6dCE-0FGPiUJ.
To post to this group, send email to

To unsubscribe from this group, send email to

--
You received this message because you are subscribed to the Google Groups "Google Maps API Web Services" group.
To post to this group, send email to google-maps-api-web-services@googlegroups.com.
To unsubscribe from this group, send email to google-maps-api-web-services+unsub...@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/google-maps-api-web-services?hl=en.


--
You received this message because you are subscribed to the Google Groups "Google Maps API Web Services" group.
To post to this group, send email to google-maps-api-web-services@googlegroups.com.
To unsubscribe from this group, send email to google-maps-api-web-services+unsub...@googlegroups.com.

Chris Green

unread,
Jul 29, 2012, 9:00:53 PM7/29/12
to google-maps-ap...@googlegroups.com
Hi, 

I would suggest you post some code and an explanation of what you are trying to achieve on Stackoverflow under the tag google-geocoding-api, someone from the community may be able to help you debug your issue. The status code you are receiving might be if you're sending multiple requests in parallel or in a tight loop, if this is the case, use a timer or pause in your code to make sure you don't send the requests too quickly.

Many thanks, 


Chris Green |
 Google Developer Relations - API Specialist |
 chg...@google.com



On Mon, Jul 30, 2012 at 5:31 AM, Trocatout <troc...@gmail.com> wrote:
the link above doesn't work !

----- Original Message ----- From: "james pruett" <gpsc...@gmail.com>

To unsubscribe from this group, send email to
--
You received this message because you are subscribed to the Google Groups
"Google Maps API Web Services" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/google-maps-api-web-services/-/6dCE-0FGPiUJ.
To post to this group, send email to

To unsubscribe from this group, send email to

--
You received this message because you are subscribed to the Google Groups "Google Maps API Web Services" group.
To post to this group, send email to google-maps-api-web-services@googlegroups.com.
To unsubscribe from this group, send email to google-maps-api-web-services+unsub...@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/google-maps-api-web-services?hl=en.


--
You received this message because you are subscribed to the Google Groups "Google Maps API Web Services" group.
To post to this group, send email to google-maps-api-web-services@googlegroups.com.
To unsubscribe from this group, send email to google-maps-api-web-services+unsub...@googlegroups.com.

Trocatout

unread,
Jul 31, 2012, 9:39:16 AM7/31/12
to google-maps-ap...@googlegroups.com
Yes i'm on OVH.
 
They says that the solution would be to migrate on an offer with an private IP !
To post to this group, send email to google-maps-ap...@googlegroups.com.
To unsubscribe from this group, send email to google-maps-api-web-...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages