Google

GA匿名IP

_anonymizeIp()
Tells Google Analytics to anonymize the information sent by the tracker objects by removing the last octet of the IP address prior to its storage. Note that this will slightly reduce the accuracy of geographic reporting.

When using this function to anonymize tracking, you must use the push function and properly associate the function with the tracker object, as illustrated below.
(continue reading…)


Google Font API

http://code.google.com/intl/zh-CN/apis/webfonts/

The Google Font API helps you add web fonts to any web page.

Benefits of the Google Font API include:

  • A choice of high quality open source fonts.
  • Works in most browsers.
  • Extremely easy to use.

For example, the following text uses a web font called Tangerine:

Making the Web Beautiful!

Applying a font is easy: just add a special stylesheet link to your web page, then use the font in a CSS style.

For details, see the quick start example.


Google Map – Travel Modes

Using Waypoints in Routes

As noted within the DirectionsRequest, you may also specify waypoints (of type DirectionsWaypoint) when calculating routes using the Directions service. Waypoints allow you to calculate routes through additional locations, in which case the returned route passes through the given waypoints. A waypoint consists of the following fields:
  • location (required) specifies the address of the waypoint.
  • stopover (optional) indicates whether this waypoint is a actual stop on the route (true) or instead only a preference to route through the indicated location (false). Stopovers are true by default.
By default, the Directions service calculates a route through the provided waypoints in their given order. Optionally, you may pass optimizeWaypoints: true within the DirectionsRequest to allow the Directions service to optimize the provided route by rearranging the waypoints in a more efficient order. (This optimization is an application of the Travelling Salesman Problem.) All waypoints must be stopovers for the Directions service to optimize their route. If you instruct the Directions service to optimize the order of its waypoints, their order will be returned in the optimized_waypoints_order field within the DirectionsResult object. The following example calculates cross-country routes across the United States using a variety of start points, end points, and waypoints. (To select multiple waypoints, press Ctrl-Click when selecting items within the list.) Note that we inspect the routes.start_geocode.formatted_address and routes.end_geocode.formatted_address to provide us with the text for each route's start and end point. (continue reading...)
1 Comment more...


Copyright © 1996-2010 Add Lives. All rights reserved.
iDream theme by Templates Next | Powered by WordPress