суббота, 19 июня 2010 г.

Automatically Generate Maps and Directions with Google Apps Script

http://googleappsdeveloper.blogspot.com/2010/06/automatically-generate-maps-and.html?utm_source=feedburner&utm_medium=feed&utm_campaign=Feed%3A+GoogleAppsDeveloperBlog+%28Google+Apps+Developer+Blog%29&utm_content=Google+Reader


function getMap (start, end) {

// Generate personalized static map.

var directions = Maps.newDirectionFinder()

.setOrigin(start)

.setDestination(end)

.getDirections();

var map = Maps.newStaticMap().setSize(500, 350);

map.setMarkerStyle(Maps.StaticMap.MarkerSize.MID,
"red"
, null);

map.addMarker(start);

map.addMarker(end);

return map.getMapUrl()

}

Комментариев нет:

Отправить комментарий