On Dec 16, 11:35 am, JaakL <[email protected]> wrote:
>  Static maps claims to have usage limitation per viewer (1000/day).
> How does google actually identify viewers? The API key is same, so
> only way I see is IP address. But for example, if I have a mobile
> application running inside mobile internet of an mobile operator, then
> all requests would come from a single public the IP (APN NAT address)
> of the operator, so I really see no way how google API can count them
> individually.

A well-behaved proxy should also send an HTTP_X_FORWARDED_FOR header,
containing the internal ip address. And it should honour downstream
proxies, adding those headers together. So the Static API simply needs
the last IP address listed as HTTP_X_FORWARDED_FOR, or the real
REMOTE_ADDR if there isn't a forwarded header.

In my case (Orange UK phone using Opera Mini), REMOTE_ADDR is the
Opera proxy and HTTP_X_FORWARDED_FOR is the Orange proxy. It *should*
also have the internal Orange IP address, but it doesn't -- that's
probably an error on Orange's part.

Andrew

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Maps API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to