On Dec 15, 4:51 pm, Marcick <m.blanc...@libero.it> wrote: > I want to build a string for downloading a static map and send it via > SMS to a cellular phone, so who receive the SMS can directly click on > the link and open the map. > I have my API key associated with my domain, but I See the link works > fine also without the key ... > Anybody can make clear to me this point ? Can I avoid to add the API > key at the end of the string (so the SMS is shorter that 160 > characters) ? > If is mandatory to add the key, is it correct to add the key I got for > my domain ? (I don't understand because it has no relation with the > user that will click and open the map from its internet connection).
The Terms of Service require the use of the key (see 5.2, 8.2, 9.2, 9.3, 10.1 amd 10.13). The fact that it works without a key doesn't mean that it's actually allowed or that it will continue to work. Static maps have to be displayed in a browser. I assume that's what's happening in your case -- certainly my smartphone will happily open a browser when I click a link in an SMS message. One way round the restriction is to use a script on your domain to interpret the querystring in your URL. That is, don't text a Static Maps URL, text a URL to a script on your domain which takes the querystring, together with your key, and creates a link to a static map to display. You text a link to www.mydomain.it/?size=250x400¢er=40.714728,-73.998672&markers=color:blue|label:S|11211|11206|11222 and your index.php script takes the querystring and creates a Location header to redirect to http://maps.google.com/maps/api/staticmap?size=250x400¢er=40.714728,-73.998672&markers=color:blue|label:S|11211|11206|11222&key=YOUR_API_KEY&sensor=false You could even shorten the parameters in the querystring so you can fit more in: use s instead of size, c instead of center, and so on. 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 google-maps-...@googlegroups.com. To unsubscribe from this group, send email to google-maps-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-maps-api?hl=en.