in reply to extract polygon data to map

by getting a google maps api key and getting the points through ajax and then plotting them on the screen ? how else ?