[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 628
  • Last Modified:

Displaying driving directions in textbox

Can anyone help me with retrieving and displaying the driving directions between the 2 locations. I am attempting to have them displayed in the drivinDirections_txt textbox. I have included the actual fla file. Please advise.
MapSimple2.fla
0
fool5683
Asked:
fool5683
  • 2
  • 2
1 Solution
 
fool5683Author Commented:
Here is the actionscript code that I am using:

 
import com.google.maps.InfoWindowOptions;
import com.google.maps.LatLng;
import com.google.maps.LatLngBounds;
import com.google.maps.Map;
import com.google.maps.MapEvent;
import com.google.maps.MapMoveEvent;
import com.google.maps.MapType;
import com.google.maps.controls.PositionControl;
import com.google.maps.controls.ZoomControl;
import com.google.maps.controls.MapTypeControl;
import com.google.maps.interfaces.IPolyline;
import com.google.maps.overlays.Marker;
import com.google.maps.overlays.MarkerOptions;
import com.google.maps.services.*;
import com.google.maps.services.Directions;
import com.google.maps.services.DirectionsEvent;
import com.google.maps.services.DirectionsOptions;
import fl.data.SimpleCollectionItem;
import fl.data.DataProvider;
import fl.events.ComponentEvent;

var items:Array = [ 
{label:"Jane Addams Elementary School", data:"10810 S Avenue H  Chicago, IL 60617"},
{label:"Louis A Agassiz Elementary School", data:"2851 N Seminary Ave  Chicago, IL 60657"},
{label:"Air Force Academy High School", data:"3630 S Wells St  Chicago, IL 60609"},
{label:"Albany Park Multicultural Academy", data:"4929 N Sawyer Ave  Chicago, IL 60625"},
{label:"Louisa May Alcott Elementary School", data:"2625 N Orchard St  Chicago, IL 60614"},
{label:"Alcott High School for the Humanities", data:"2957 N Hoyne Ave  Chicago, IL 60618"},
{label:"Ira F Aldridge Elementary School", data:"630 E 131st St  Chicago, IL 60827"},
{label:"ALOP Alternative Schools", data:"4655 S Dearborn St  Chicago, IL 60609"},
{label:"John P Altgeld Elementary School", data:"1340 W 71st St  Chicago, IL 60636"},
{label:"Ames Middle School", data:"1340 W 71st St  Chicago, IL 60636"},
{label:"Roald Amundsen High School", data:"1920 N Hamlin Ave  Chicago, IL 60647"},
{label:"Ariel Elementary Community Academy", data:"5110 N Damen Ave  Chicago, IL 60625"},
{label:"Phillip D Armour Elementary School", data:"1119 E 46th St  Chicago, IL 60653"},
{label:"George Armstrong International Studies ES", data:"950 W 33rd Pl  Chicago, IL 60608"},
{label:"Louis Armstrong Math & Science Elementary School", data:"2110 W Greenleaf Ave  Chicago, IL 60645"},
{label:"Ashburn Community Elementary School", data:"8300 S Saint Louis Ave  Chicago, IL 60652"},
{label:"Arthur R Ashe Elementary School", data:"8505 S Ingleside Ave  Chicago, IL 60619"},
{label:"Crispus Attucks Elementary School", data:"5055 S State St  Chicago, IL 60609"},
{label:"John J Audubon Elementary School", data:"3500 N Hoyne Ave  Chicago, IL 60618"},
{label:"Austin Polytechnical Academy High School", data:"231 N Pine Ave  Chicago, IL 60644"},
{label:"Avalon Park Elementary School", data:"8045 S Kenwood Ave  Chicago, IL 60619"},
{label:"Mariano Azuela Elementary School", data:"4707 W Marquette Rd  Chicago, IL 60629"},
{label:"Benjamin Banneker Elementary School", data:"6656 S Normal Blvd  Chicago, IL 60621"},
{label:"Alice L Barnard Computer Math & Science Ctr ES", data:"10354 S Charles St  Chicago, IL 60643"},
{label:"John Barry Elementary School", data:"2828 N Kilbourn Ave  Chicago, IL 60641"},
{label:"Clara Barton Elementary School", data:"7650 S Wolcott Ave  Chicago, IL 60620"},
{label:"Perkins Bass Elementary School", data:"1140 W 66th St  Chicago, IL 60621"},
{label:"Newton Bateman Elementary School", data:"4220 N Richmond St  Chicago, IL 60618"},
{label:"Daniel C Beard Elementary School", data:"6445 W Strong St  Chicago, IL 60656"},
{label:"Edward Beasley Elementary Magnet Academic Center", data:"5255 S State St  Chicago, IL 60609"},
{label:"Jean Baptiste Beaubien Elementary School", data:"5025 N Laramie Ave  Chicago, IL 60630"},
{label:"Ludwig Van Beethoven Elementary School", data:"25 W 47th St  Chicago, IL 60609"},
{label:"Jacob Beidler Elementary School", data:"3151 W Walnut St  Chicago, IL 60612"},
{label:"Hiram H Belding Elementary School", data:"4257 N Tripp Ave  Chicago, IL 60641"},
{label:"Alexander Graham Bell Elementary School", data:"3730 N Oakley Ave  Chicago, IL 60618"},
{label:"Belmont-Cragin Elementary School", data:"2456 N Mango Ave  Chicago, IL 60639"},
{label:"Frank I Bennett Elementary School", data:"10115 S Prairie Ave  Chicago, IL 60628"},
{label:"Best Practice High School", data:"2040 W Adams St  Chicago, IL 60612"},
{label:"Mary McLeod Bethune Elementary School", data:"3030 W Arthington St  Chicago, IL 60612"},
{label:"Robert A Black Magnet Elementary School", data:"9101 S Euclid Ave  Chicago, IL 60619"},
{label:"James G Blaine Elementary School", data:"1420 W Grace St  Chicago, IL 60613"},
{label:"Blair Early Childhood Center", data:"6751 W 63rd Pl  Chicago, IL 60638"},
{label:"William J Bogan High School", data:"3939 W 79th St  Chicago, IL 60652"},
{label:"Carrie Jacobs Bond Elementary School", data:"7050 S May St  Chicago, IL 60621"},
{label:"Arna Wendell Bontemps Elementary School", data:"1241 W 58th St  Chicago, IL 60636"},
{label:"Daniel Boone Elementary School", data:"6710 N Washtenaw Ave  Chicago, IL 60645"},
{label:"Edward A Bouchet Math & Science Academy ES", data:"7355 S Jeffery Blvd  Chicago, IL 60649"},
{label:"Myra Bradwell Communications Arts & Sciences ES", data:"7736 S Burnham Ave  Chicago, IL 60649"},
{label:"Joseph Brennemann Elementary School", data:"4251 N Clarendon Ave  Chicago, IL 60613"},
{label:"Lorenz Brentano Math & Science Academy ES", data:"	2723 N Fairfield Ave  Chicago, IL 60647"},
{label:"Norman A Bridge Elementary School", data:"	3800 N New England Ave  Chicago, IL 60634"},
{label:"Orville T Bright Elementary School", data:"	10740 S Calhoun Ave  Chicago, IL 60617"},
{label:"Brighton Park Elementary School", data:"	3825 S Washtenaw Ave  Chicago, IL 60632"},
{label:"Bronzeville Scholastic Academy High School", data:"	4934 S Wabash Ave  Chicago, IL 60615"},
{label:"Gwendolyn Brooks College Preparatory Academy HS", data:"	250 E 111th St  Chicago, IL 60628"},
{label:"Ronald Brown Elementary Community Academy", data:"	12607 S Union Ave  Chicago, IL 60628"},
{label:"William H Brown Elementary School", data:"	54 N Hermitage Ave  Chicago, IL 60612"},
{label:"Charles S Brownell Elementary School", data:"	6741 S Michigan Ave  Chicago, IL 60637"},
{label:"Milton Brunson Math & Science Specialty ES", data:" 	932 N Central Ave  Chicago, IL 60651"},
{label:"Kate S Buckingham Special Education Center", data:"	9207 S Phillips Ave  Chicago, IL 60617"},
{label:"Lyman A Budlong Elementary School", data:"	2701 W Foster Ave  Chicago, IL 60625"},
{label:"Luther Burbank Elementary School", data:"	2035 N Mobile Ave  Chicago, IL 60639"},
{label:"Edmond Burke Elementary School	", data:"5356 S King Dr  Chicago, IL 60615"},
{label:"Augustus H Burley Elementary School	", data:"1630 W Barry Ave  Chicago, IL 60657"},
{label:"Burnham Elementary Inclusive Academy	", data:"1903 E 96th St  Chicago, IL 60617"},
{label:"Burnside Elementary Scholastic Academy	", data:"650 E 91st Pl  Chicago, IL 60619"},
{label:"Jonathan Burr Elementary School	", data:"1621 W Wabansia Ave  Chicago, IL 60622"},
{label:"John C Burroughs Elementary School	", data:"3542 S Washtenaw Ave  Chicago, IL 60632"},
{label:"Michael M Byrne Elementary School	", data:"5329 S Oak Park Ave  Chicago, IL 60638"},
{label:"Charles P Caldwell Academy of Math & Science ES	", data:"8546 S Cregier  Chicago, IL 60617"},
{label:"John Calhoun North Elementary School	", data:"2833 W Adams St  Chicago, IL 60612"},
{label:"Calmeca Academy of Fine Arts and Dual Language	", data:"3456 W 38th St  Chicago, IL 60632"},
{label:"Daniel R Cameron Elementary School	", data:"1234 N Monticello Ave  Chicago, IL 60651"},
{label:"Marvin Camras Elementary School	", data:"3000 N Mango Ave  Chicago, IL 60634"},
{label:"Miriam G Canter Middle School	", data:"4959 S Blackstone Ave  Chicago, IL 60615"},
{label:"Arthur E Canty Elementary School	", data:"3740 N Panama Ave  Chicago, IL 60634"},
{label:"Lazaro Cardenas Elementary School	", data:"2345 S Millard Ave  Chicago, IL 60623"},
{label:"Andrew Carnegie Elementary School	", data:"1414 E 61st Pl  Chicago, IL 60637"},
{label:"Carroll-Rosenwald Specialty Elementary School	", data:"2929 W 83rd St  Chicago, IL 60652"},
{label:"Rachel Carson Elementary School	", data:"5516 S Maplewood Ave  Chicago, IL 60629"},
{label:"William W Carter Elementary School	", data:"5740 S Michigan Ave  Chicago, IL 60637"},
{label:"George Washington Carver Primary School	", data:"901 E 133rd Pl  Chicago, IL 60827"},
{label:"George Washington Carver Military Academy HS	", data:"13100 S Doty Ave  Chicago, IL 60627"},
{label:"Pablo Casals Elementary School	", data:"3501 W Potomac Ave  Chicago, IL 60651"},
{label:"George F Cassell Elementary School	", data:"11314 S Spaulding Ave  Chicago, IL 60655"},
{label:"Rosario Castellanos Elementary School	", data:"2524 S Central Park Ave  Chicago, IL 60623"},
{label:"Willa Cather Elementary School	", data:"2908 W Washington Blvd  Chicago, IL 60612"},
{label:"Thomas Chalmers Specialty Elementary School	", data:"2745 W Roosevelt Rd  Chicago, IL 60608"},
{label:"Eliza Chappell Elementary School	", data:"2135 W Foster Ave  Chicago, IL 60625"},
{label:"Salmon P Chase Elementary School	", data:"2021 N Point St  Chicago, IL 60647"},
{label:"Cesar E Chavez Multicultural Academic Center ES	", data:"4747 S Marshfield Ave  Chicago, IL 60609"},
{label:"Chicago Academy Elementary School	", data:"3400 N Austin Ave  Chicago, IL 60634"},
{label:"Chicago Academy High School	", data:"3400 N Austin Ave  Chicago, IL 60634"},
{label:"Chicago High School for Agricultural Sciences	", data:"3857 W 111th St  Chicago, IL 60655"},
{label:"Chicago Military Academy High School	", data:"3519 S Giles Ave  Chicago, IL 60653"},
{label:"Chicago Vocational Achievement Academy HS	2100 E 87th St  Chicago, IL 60617"},
{label:"Chicago Vocational Career Academy High School	", data:"2100 E 87th St  Chicago, IL 60617"},
{label:"Frederic Chopin Elementary School	", data:"2450 W Rice St  Chicago, IL 60622"},
{label:"Walter S Christopher Elementary School	", data:"5042 S Artesian Ave  Chicago, IL 60632"},
{label:"Claremont Academy Elementary School	2300 W 64th St  ", data:"Chicago, IL 60636"},
{label:"Michele Clark Academic Prep Magnet High School	", data:"5101 W Harrison St  Chicago, IL 60644"},
{label:"George Rogers Clark Elementary School	", data:"1045 S Monitor Ave  Chicago, IL 60644"},
{label:"Henry Clay Elementary School	", data:"13231 S Burley Ave  Chicago, IL 60633"},
{label:"Clemente Achievement Academy High School	", data:"1147 N Western Ave  Chicago, IL 60622"},
{label:"Roberto Clemente Community Academy High School	", data:"1147 N Western Ave  Chicago, IL 60622"},
{label:"Grover Cleveland Elementary School	", data:"3121 W Byron St  Chicago, IL 60618"},
{label:"DeWitt Clinton Elementary School	", data:"6110 N Fairfield Ave  Chicago, IL 60659"},
{label:"Henry R Clissold Elementary School	", data:"2350 W 110th Pl  Chicago, IL 60643"},
{label:"Johnnie Colemon Elementary Academy	", data:"1441 W 119th St  Chicago, IL 60643"},
{label:"Edward Coles Elementary Language Academy	", data:"8441 S Yates Blvd  Chicago, IL 60617"},
{label:"Collins Academy High School	", data:"1313 S Sacramento Dr  Chicago, IL 60623"},
{label:"Columbia Explorers Elementary Academy	", data:"4520 S Kedzie Ave  Chicago, IL 60632"},
{label:"Christopher Columbus Elementary School	", data:"1003 N Leavitt St  Chicago, IL 60622"},
{label:"John W Cook Elementary School	", data:"8150 S Bishop St  Chicago, IL 60620"},
{label:"John C Coonley Elementary School	", data:"4046 N Leavitt St  Chicago, IL 60618"},
{label:"Peter Cooper Elementary Dual Language Academy	", data:"1624 W 19th St  Chicago, IL 60608"},
{label:"Daniel J Corkery Elementary School	", data:"2510 S Kildare Ave  Chicago, IL 60623"},
{label:"George H Corliss High School	", data:"821 E 103rd St  Chicago, IL 60628"},
{label:"Mary E Courtenay Elementary Language Arts Center	", data:"1726 W Berteau Ave  Chicago, IL 60613"},
{label:"Crane Achievement Academy High School	", data:"2245 W Jackson Blvd  Chicago, IL 60612"},
{label:"Richard T Crane Technical Preparatory HS	", data:"2245 W Jackson Blvd  Chicago, IL 60612"},
{label:"Crown Community Academy of Fine Arts Center ES	", data:"2128 S Saint Louis Ave  Chicago, IL 60623"},
{label:"Paul Cuffe Math-Science Technology Academy ES	", data:"8324 S Racine Ave  Chicago, IL 60620"},
{label:"Countee Cullen Elementary School	", data:"10650 S Eberhart Ave  Chicago, IL 60628"},
{label:"Marie Sklodowska Curie Metropolitan High School	", data:"4959 S Archer Ave  Chicago, IL 60632"},
{label:"George W Curtis Elementary School	", data:"32 E 115th St  Chicago, IL 60628"},
{label:"Richard J Daley Elementary Academy	", data:"5024 S Wolcott Ave  Chicago, IL 60609"},
{label:"Charles R Darwin Elementary School	", data:"3116 W Belden Ave  Chicago, IL 60647"},
{label:"Sir Miles Davis Magnet Elementary Academy	", data:"6730 S Paulina St  Chicago, IL 60636"},
{label:"Nathan S Davis Elementary School	", data:"3014 W 39th Pl  Chicago, IL 60632"},
{label:"Charles Gates Dawes Elementary School	", data:"3810 W 81st Pl  Chicago, IL 60652"},
{label:"Oscar DePriest Elementary School	", data:"139 S Parkside Ave  Chicago, IL 60644"},
{label:"Stephen Decatur Classical Elementary School	", data:"7030 N Sacramento Ave  Chicago, IL 60645"},
{label:"Edward C Delano Elementary School	", data:"3937 W Wilcox St  Chicago, IL 60624"},
{label:"Charles S Deneen Elementary School	", data:"7240 S Wabash Ave  Chicago, IL 60619"},
{label:"Robert Nathaniel Dett Elementary School	", data:"2306 W Maypole Ave  Chicago, IL 60612"},
{label:"William E Dever Elementary School	", data:"3436 N Osceola Ave  Chicago, IL 60634"},
{label:"DeVry University Advantage Academy HS	", data:"3300 N Campbell  Chicago, IL 60618"},
{label:"Dewey Elementary Academy of Fine Arts	", data:"5415 S Union Ave  Chicago, IL 60609"},
{label:"Jose De Diego Elementary Community Academy	", data:"1313 N Claremont Ave  Chicago, IL 60622"},
{label:"Everett McKinley Dirksen Elementary School	", data:"8601 W Foster Ave  Chicago, IL 60656"},
{label:"Walt Disney Magnet Elementary School	", data:"4140 N Marine Dr  Chicago, IL 60613"},
{label:"Disney II Magnet School	", data:"3815 N Kedvale Ave  Chicago, IL 60641"},
{label:"Arthur Dixon Elementary School	", data:"8306 S Saint Lawrence Ave  Chicago, IL 60619"},
{label:"Mary Mapes Dodge Elementary Renaissance Academy	", data:"2651 W Washington Blvd  Chicago, IL 60612"},
{label:"James R Doolittle Jr Elementary School	", data:"535 E 35th St  Chicago, IL 60616"},
{label:"John C Dore Elementary School	", data:"6108 S Natoma Ave  Chicago, IL 60638"},
{label:"Frederick A Douglass Academy High School	", data:"543 N Waller Ave  Chicago, IL 60644"},
{label:"John B Drake Elementary School	", data:"2722 S King Dr  Chicago, IL 60616"},
{label:"Thomas Drummond Elementary School	", data:"1845 W Cortland St  Chicago, IL 60622"},
{label:"William E B Dubois Elementary School	", data:"330 E 133rd St  Chicago, IL 60827"},
{label:"John Foster Dulles Elementary School	", data:"6311 S Calumet Ave  Chicago, IL 60637"},
{label:"Dumas Technology Academy	", data:"6650 S Ellis Ave  Chicago, IL 60637"},
{label:"Paul Laurence Dunbar Career Academy High School	", data:"3000 S King Dr  Chicago, IL 60616"},
{label:"Dunne Technology Academy	", data:"10845 S Union Ave  Chicago, IL 60628"},
{label:"Ana Roque de Duprey Elementary School	", data:"2620 W Hirsch St  Chicago, IL 60622"},
{label:"Durkin Park Elementary School	", data:"8445 S Kolin Ave  Chicago, IL 60652"},
{label:"Dvorak Technology Academy	", data:"3615 W 16th St  Chicago, IL 60623"},
{label:"Dyett High School	", data:"555 E 51st St  Chicago, IL 60615"},
{label:"Amelia Earhart Options for Knowledge ES	", data:"1710 E 93rd St  Chicago, IL 60617"},
{label:"Charles W Earle Elementary School	", data:"6121 S Hermitage Ave  Chicago, IL 60636"},
{label:"John F Eberhart Elementary School	", data:"3400 W 65th Pl  Chicago, IL 60629"},
{label:"Christian Ebinger Elementary School	", data:"7350 W Pratt Ave  Chicago, IL 60631"},
{label:"Edgebrook Elementary School	", data:"6525 N Hiawatha Ave  Chicago, IL 60646"},
{label:"Edison Park Elementary School	", data:"6220 N Olcott Ave  Chicago, IL 60631"},
{label:"Thomas A Edison Regional Gifted Center ES	", data:"4929 N Sawyer Ave  Chicago, IL 60625"},
{label:"Richard Edwards Elementary School	", data:"4815 S Karlov Ave  Chicago, IL 60632"},
{label:"Edward K Ellington Elementary School	", data:"243 N Parkside Ave  Chicago, IL 60644"},
{label:"Robert Emmet Elementary School	", data:"5500 W Madison St  Chicago, IL 60644"},
{label:"Leif Ericson Elementary Scholastic Academy	", data:"3600 W 5th Ave  Chicago, IL 60624"},
{label:"Esmond Elementary School	", data:"1865 W Montvale  Chicago, IL 60643"},
{label:"Edward Everett Elementary School	", data:"3419 S Bell Ave  Chicago, IL 60608"},
{label:"Evergreen Academy Middle School	", data:"3537 S Paulina St  Chicago, IL 60609"},
{label:"Medgar Evers Elementary School	", data:"9811 S Lowe Ave  Chicago, IL 60628"},
{label:"Fairfield Elementary Academy	", data:"6201 S Fairfield Ave  Chicago, IL 60629"},
{label:"Laughlin Falconer Elementary School	", data:"3020 N Lamon Ave  Chicago, IL 60641"},
{label:"Michael Faraday Elementary School	", data:"3250 W Monroe St  Chicago, IL 60624"},
{label:"James B Farnsworth Elementary School	", data:"5414 N Linder Ave  Chicago, IL 60630"},
{label:"David G Farragut Career Academy High School	", data:"2345 S Christiana Ave  Chicago, IL 60623"},
{label:"Fenger Achievement Academy High School	", data:"11220 S Wallace St  Chicago, IL 60628"},
{label:"Christian Fenger Academy High School	", data:"11220 S Wallace St  Chicago, IL 60628"},
{label:"Enrico Fermi Elementary School	", data:"1415 E 70th St  Chicago, IL 60637"},
{label:"Fernwood Elementary School	", data:"10041 S Union Ave  Chicago, IL 60628"},
{label:"Eugene Field Elementary School	", data:"7019 N Ashland Ave  Chicago, IL 60626"},
{label:"William F Finkl Elementary School	", data:"2332 S Western Ave  Chicago, IL 60608"},
{label:"John Fiske Elementary School	", data:"6145 S Ingleside Ave  Chicago, IL 60637"},
{label:"Edwin G Foreman High School	", data:"3235 N LeClaire Ave  Chicago, IL 60641"},
{label:"Fort Dearborn Elementary School	", data:"9025 S Throop St  Chicago, IL 60620"},
{label:"Foster Park Elementary School	", data:"8530 S Wood St  Chicago, IL 60620"},
{label:"Franklin Elementary Fine Arts Center	", data:"225 W Evergreen Ave  Chicago, IL 60610"},
{label:"Frazier Prospective IB Magnet ES	", data:"4027 W Grenshaw St  Chicago, IL 60624"},
{label:"Melville W Fuller Elementary School	", data:"4214 S Saint Lawrence Ave  Chicago, IL 60653"},
{label:"Robert Fulton Elementary School	", data:"5300 S Hermitage Ave  Chicago, IL 60609"},
{label:"Frederick Funston Elementary School	", data:"2010 N Central Park  Chicago, IL 60647"},
{label:"Gage Park High School	", data:"5630 S Rockwell St  Chicago, IL 60629"},
{label:"Stephen F Gale Elementary Community Academy	", data:"1631 W Jonquil Ter  Chicago, IL 60626"},
{label:"Galileo Math & Science Scholastic Academy ES	", data:"820 S Carpenter St  Chicago, IL 60607"},
{label:"Matthew Gallistel Elementary Language Academy	", data:"10347 S Ewing Ave  Chicago, IL 60617"},
{label:"Marcus Moziah Garvey Elementary School	", data:"10309 S Morgan St  Chicago, IL 60643"},
{label:"John W Garvy Elementary School	", data:"5225 N Oak Park Ave  Chicago, IL 60656"},
{label:"Joseph E Gary Elementary School	", data:"3740 W 31st St  Chicago, IL 60623"},
{label:"George Westinghouse High School	", data:"3223 W Franklin Blvd  Chicago, IL 60624"},
{label:"Frank L Gillespie Elementary School	", data:"9301 S State St  Chicago, IL 60619"},
{label:"Johann W von Goethe Elementary School	", data:"2236 N Rockwell St  Chicago, IL 60647"},
{label:"Nathan R Goldblatt Elementary School	", data:"4257 W Adams St  Chicago, IL 60624"},
{label:"Samuel Gompers Fine Arts Options ES	", data:"12302 S State St  Chicago, IL 60628"},
{label:"Elaine O Goodlow Elementary Magnet School	", data:"2040 W 62nd St  Chicago, IL 60636"},
{label:"William C Goudy Elementary School	", data:"5120 N Winthrop Ave  Chicago, IL 60640"},
{label:"Alexander Graham Elementary School	", data:"4436 S Union Ave  Chicago, IL 60609"},
{label:"Ray Graham Training Center High School	", data:"2347 S Wabash Ave  Chicago, IL 60616"},
{label:"William P Gray Elementary School	", data:"3730 N Laramie Ave  Chicago, IL 60641"},
{label:"Greater Lawndale High School For Social Justice	", data:"3120 S Kostner Ave  Chicago, IL 60623"},
{label:"Horace Greeley Elementary School	", data:"832 W Sheridan Rd  Chicago, IL 60613"},
{label:"Wendell E Green Elementary School	", data:"1150 W 96th St  Chicago, IL 60643"},
{label:"Nathanael Greene Elementary School	", data:"3525 S Honore  Chicago, IL 60609"},
{label:"John Milton Gregory Elementary School	", data:"3715 W Polk St  Chicago, IL 60624"},
{label:"Walter Q Gresham Elementary School	", data:"8524 S Green St  Chicago, IL 60620"},
{label:"Robert L Grimes Elementary School	", data:"5450 W 64th Pl  Chicago, IL 60638"},
{label:"Virgil Grissom Elementary School	", data:"12810 S Escanaba Ave  Chicago, IL 60633"},
{label:"Simon Guggenheim Elementary School	", data:"7141 S Morgan St  Chicago, IL 60621"},
{label:"Frank W Gunsaulus Elementary Scholastic Academy	", data:"4420 S Sacramento Ave  Chicago, IL 60632"},
{label:"John Charles Haines Elementary School	", data:"247 W 23rd Pl  Chicago, IL 60616"},
{label:"Nathan Hale Elementary School	", data:"6140 S Melvina  Chicago, IL 60638"},
{label:"Alex Haley Elementary Academy	", data:"11411 S Eggleston Ave  Chicago, IL 60628"},
{label:"Alexander Hamilton Elementary School	", data:"1650 W Cornelia Ave  Chicago, IL 60657"},
{label:"John H Hamline Elementary School	", data:"4747 S Bishop St  Chicago, IL 60609"},
{label:"Charles G Hammond Elementary School	", data:"2819 W 21st Pl  Chicago, IL 60623"},
{label:"Lionel Hampton Fine & Performing Arts ES	", data:"3434 W 77th St  Chicago, IL 60652"},
{label:"John Hancock College Preparatory High School	", data:"4034 W 56th St  Chicago, IL 60629"},
{label:"Hanson Park Elementary School	", data:"5411 W Fullerton Ave  Chicago, IL 60639"},
{label:"John M Harlan Community Academy High School	", data:"9652 S Michigan Ave  Chicago, IL 60628"},
{label:"William Rainey Harper High School	", data:"6520 S Wood St  Chicago, IL 60636"},
{label:"Bret Harte Elementary School	", data:"1556 E 56th St  Chicago, IL 60637"},
{label:"John Harvard Elementary School of Excellence	", data:"7525 S Harvard  Chicago, IL 60620"},
{label:"Helge A Haugan Elementary School	", data:"4540 N Hamlin Ave  Chicago, IL 60625"},
{label:"Hawthorne Elementary Scholastic Academy	", data:"3319 N Clifton Ave  Chicago, IL 60657"},
{label:"John Hay Elementary Community Academy	", data:"1018 N Laramie Ave  Chicago, IL 60651"},
{label:"Stephen K Hayt Elementary School	", data:"1518 W Granville Ave  Chicago, IL 60660"},
{label:"Robert Healy Elementary School	", data:"3010 S Parnell Ave  Chicago, IL 60616"},
{label:"Phobe Apperson Hearst Elementary School	", data:"4640 S Lamon Ave  Chicago, IL 60638"},
{label:"James Hedges Elementary School	", data:"4747 S Winchester Ave  Chicago, IL 60609"},
{label:"Helen M Hefferan Elementary School	", data:"4409 W Wilcox St  Chicago, IL 60624"},
{label:"Charles R Henderson Elementary School	", data:"5650 S Wolcott Ave  Chicago, IL 60636"},
{label:"Thomas A Hendricks Elementary Community Academy	4316 S Princeton Ave  Chicago, IL 60609"},
{label:"Patrick Henry Elementary School	", data:"4250 N Saint Louis Ave  Chicago, IL 60618"},
{label:"Matthew A Henson Elementary School	", data:"1326 S Avers Ave  Chicago, IL 60623"},
{label:"Victor Herbert Elementary School	", data:"2131 W Monroe St  Chicago, IL 60612"},
{label:"Irene C. Hernandez Middle School for the Advancement of Science	", data:"3510 W 55th St  Chicago, IL 60632"},
{label:"Ninos Heroes Elementary Academic Center	", data:"8344 S Commercial Ave  Chicago, IL 60617"},
{label:"Theodore Herzl Elementary School	", data:"3711 W Douglas Blvd  Chicago, IL 60623"},
{label:"William G Hibbard Elementary School	", data:"3244 W Ainslie St  Chicago, IL 60625"},
{label:"Thomas J Higgins Elementary Community Academy	", data:"11710 S Morgan St  Chicago, IL 60643"},
{label:"William A Hinton Elementary School	", data:"644 W 71st St  Chicago, IL 60621"},
{label:"Emil G Hirsch Metropolitan High School	", data:"7740 S Ingleside Ave  Chicago, IL 60619"},
{label:"Rufus M Hitch Elementary School	", data:"5625 N McVicker Ave  Chicago, IL 60646"},
{label:"Charles N Holden Elementary School	", data:"1104 W 31st St  Chicago, IL 60608"},
{label:"Oliver Wendell Holmes Elementary School	", data:"955 W Garfield Blvd  Chicago, IL 60621"},
{label:"Hope College Preparatory High School	", data:"5515 S Lowe Ave  Chicago, IL 60621"},
{label:"Julia Ward Howe Elementary School of Excellence	", data:"720 N Lorel Ave  Chicago, IL 60644"},
{label:"Thomas Hoyne Elementary School	", data:"8905 S Crandon Ave  Chicago, IL 60617"},
{label:"Gurdon S Hubbard High School	", data:"6200 S Hamlin Ave  Chicago, IL 60629"},
{label:"Charles Evans Hughes Elementary School	", data:"4247 W 15th St  Chicago, IL 60623"},
{label:"Langston Hughes Elementary School	", data:"240 W 104th St  Chicago, IL 60628"},
{label:"Edward N Hurley Elementary School	", data:"3849 W 69th Pl  Chicago, IL 60629"},
{label:"Hyde Park Academy High School	", data:"6220 S Stony Island Ave  Chicago, IL 60637"},
{label:"Infinity Math Science and Technology High School	", data:"3120 S Kostner Ave  Chicago, IL 60623"},
{label:"Inter-American Elementary Magnet School	", data:"851 W Waveland Ave  Chicago, IL 60613"},
{label:"Washington Irving Elementary School	", data:"749 S Oakley Blvd  Chicago, IL 60612"},
{label:"Andrew Jackson Elementary Language Academy	", data:"1340 W Harrison St  Chicago, IL 60607"},
{label:"Mahalia Jackson Elementary School	", data:"917 W 88th St  Chicago, IL 60620"},
{label:"Friedrich Ludwig Jahn Elementary School	", data:"3149 N Wolcott Ave  Chicago, IL 60657"},
{label:"Minnie Mars Jamieson Elementary School	", data:"5650 N Mozart St  Chicago, IL 60659"},
{label:"Nancy B Jefferson Alternative High School	", data:"1100 S Hamilton Ave  Chicago, IL 60612"},
{label:"Edward Jenner Elementary Academy of the Arts	", data:"1119 N Cleveland Ave  Chicago, IL 60610"},
{label:"Jensen Elementary Scholastic Academy	", data:"3030 W Harrison St  Chicago, IL 60612"},
{label:"James Weldon Johnson Elementary School	", data:"1420 S Albany Ave  Chicago, IL 60623"},
{label:"William Jones College Preparatory High School	", data:"606 S State St  Chicago, IL 60605"},
{label:"Scott Joplin Elementary School	", data:"7931 S Honore St  Chicago, IL 60620"},
{label:"Jordan Elementary Community School	", data:"7414 N Wolcott Ave  Chicago, IL 60626"},
{label:"Benito Juarez Community Academy High School	", data:"2150 S Laflin St  Chicago, IL 60608"},
{label:"Percy L Julian High School	", data:"10330 S Elizabeth St  Chicago, IL 60643"},
{label:"Joseph Jungman Elementary School	", data:"1746 S Miller St  Chicago, IL 60608"},
{label:"Gerald Delgado Kanoon Elementary Magnet School	", data:"2233 S Kedzie Ave  Chicago, IL 60623"},
{label:"Annie Keller Elementary Gifted Magnet School	", data:"3020 W 108th St  Chicago, IL 60655"},
{label:"Joseph Kellman Corporate Community ES	", data:"751 S Sacramento Blvd  Chicago, IL 60612"},
{label:"Kate S Kellogg Elementary School	", data:"9241 S Leavitt St  Chicago, IL 60620"},
{label:"Thomas Kelly High School	", data:"4136 S California Ave  Chicago, IL 60632"},
{label:"Kelvyn Park High School	", data:"4343 W Wrightwood Ave  Chicago, IL 60639"},
{label:"John F Kennedy High School	", data:"6325 W 56th St  Chicago, IL 60638"},
{label:"Kenwood Academy High School	", data:"5015 S Blackstone Ave  Chicago, IL 60615"},
{label:"Joshua D Kershaw Elementary School	", data:"6450 S Lowe Ave  Chicago, IL 60621"},
{label:"Francis Scott Key Elementary School	", data:"517 N Parkside Ave  Chicago, IL 60644"},
{label:"Joyce Kilmer Elementary School	", data:"6700 N Greenview Ave  Chicago, IL 60626"},
{label:"William H King Elementary School	", data:"740 S Campbell Ave  Chicago, IL 60612"},
{label:"Dr  Martin Luther King  Jr  College Prep HS	", data:"4445 S Drexel Blvd  Chicago, IL 60653"},
{label:"John H Kinzie Elementary School	", data:"5625 S Mobile Ave  Chicago, IL 60638"},
{label:"Rudyard Kipling Elementary School	", data:"9351 S Lowe Ave  Chicago, IL 60620"},
{label:"Alfred David Kohn Elementary School	", data:"10414 S State St  Chicago, IL 60628"},
{label:"Charles Kozminski Elementary Community Academy	", data:"936 E 54th St  Chicago, IL 60615"},

{label:"Jean D Lafayette Elementary School	", data:"2714 W Augusta Blvd  Chicago, IL 60622"},
{label:"Lake View High School	", data:"4015 N Ashland Ave  Chicago, IL 60613"},
{label:"Albert G Lane Technical High School	", data:"2501 W Addison St  Chicago, IL 60618"},
{label:"Anna R. Langford Community Academy	", data:"6010 S Throop St  Chicago, IL 60636"},
{label:"Agustin Lara Elementary Academy	", data:"4619 S Wolcott Ave  Chicago, IL 60609"},
{label:"LaSalle Elementary Language Academy	", data:"1734 N Orleans St  Chicago, IL 60614"},
{label:"LaSalle II Magnet Elementary School	", data:"1148 N Honore St  Chicago, IL 60622"},
{label:"Julia C Lathrop Elementary School	1440 S Christiana Ave  Chicago, IL 60623"},
{label:"Mildred I Lavizzo Elementary School	", data:"138 W 109th St  Chicago, IL 60628"},
{label:"Lawndale Elementary Community Academy	", data:"3500 W Douglas Blvd  Chicago, IL 60623"},
{label:"Robert H Lawrence Elementary School	", data:"9928 S Crandon Ave  Chicago, IL 60617"},
{label:"Richard Henry Lee Elementary School	", data:"6448 S Tripp Ave  Chicago, IL 60629"},
{label:"George Leland Elementary School	", data:"5221 W Congress Pkwy  Chicago, IL 60644"},
{label:"Lenart Elementary Regional Gifted Center	", data:"8101 S LaSalle St  Chicago, IL 60620"},
{label:"Leslie Lewis Elementary School	", data:"1431 N Leamington Ave  Chicago, IL 60651"},
{label:"Arthur A Libby Elementary School	", data:"5300 S Loomis Blvd  Chicago, IL 60609"},
{label:"Abraham Lincoln Elementary School	", data:"615 W Kemper Pl  Chicago, IL 60614"},
{label:"Lincoln Park High School	", data:"2001 N Orchard St  Chicago, IL 60614"},
{label:"Robert Lindblom Math & Science Academy HS	", data:"6130 S Wolcott Ave  Chicago, IL 60636"},
{label:"Little Village Elementary School	", data:"2620 S Lawndale Ave  Chicago, IL 60623"},
{label:"Henry D Lloyd Elementary School	", data:"2103 N Lamon Ave  Chicago, IL 60639"},
{label:"Josephine C Locke Elementary School	", data:"2828 N Oak Park Ave  Chicago, IL 60634"},
{label:"Logandale Middle School	", data:"3212 W George St  Chicago, IL 60618"},
{label:"Federico Garcia Lorca Elementary School	", data:"3231 N Springfield Ave  Chicago, IL 60618"},
{label:"Joseph Lovett Elementary School	", data:"6333 W Bloomingdale Ave  Chicago, IL 60639"},
{label:"James Russell Lowell Elementary School	", data:"3320 W Hirsch St  Chicago, IL 60651"},
{label:"Rodolfo Lozano Bilingual & International Ctr ES	", data:"1501 N Greenview Ave  Chicago, IL 60622"},
{label:"Mary Lyon Elementary School	", data:"2941 N McVicker Ave  Chicago, IL 60634"},
{label:"Francisco I Madero Middle School	", data:"3202 W 28th St  Chicago, IL 60623"},
{label:"James Madison Elementary School	", data:"7433 S Dorchester Ave  Chicago, IL 60619"},
{label:"George Manierre Elementary School	", data:"1420 N Hudson Ave  Chicago, IL 60610"},
{label:"Manley Career Academy High School	", data:"2935 W Polk St  Chicago, IL 60612"},
{label:"Horace Mann Elementary School	", data:"8050 S Chappel Ave  Chicago, IL 60617"},
{label:"Guglielmo Marconi Elementary Community Academy	", data:"230 N Kolmar Ave  Chicago, IL 60624"},
{label:"Marine Military Math and Science Academy 	", data:"145 S Campbell Ave  Chicago, IL 60612"},
{label:"Marquette Elementary School	", data:"6550 S Richmond St  Chicago, IL 60629"},
{label:"John L Marsh Elementary School	", data:"9822 S Exchange Ave  Chicago, IL 60617"},
{label:"John Marshall Metropolitan High School	", data:"3250 W Adams St  Chicago, IL 60624"},
{label:"Thurgood Marshall Middle School	", data:"3900 N Lawndale Ave  Chicago, IL 60618"},
{label:"Roswell B Mason Elementary School	", data:"4217 W 18th St  Chicago, IL 60623"},
{label:"Mason High School	", data:"4217 W 18th St  Chicago, IL 60623"},
{label:"Stephen T Mather High School	", data:"5835 N Lincoln Ave  Chicago, IL 60659"},
{label:"Horatio May Elementary Community Academy	", data:"512 S Lavergne Ave  Chicago, IL 60644"},
{label:"Oscar F Mayer Elementary School	", data:"2250 N Clifton Ave  Chicago, IL 60614"},
{label:"William J & Charles H Mayo Elementary School	", data:"249 E 37th St  Chicago, IL 60653"},
{label:"Benjamin E Mays Elementary Academy	", data:"838 W Marquette Rd  Chicago, IL 60621"},
{label:"Sharon Christa McAuliffe Elementary School	", data:"1841 N Springfield Ave  Chicago, IL 60647"},
{label:"George B McClellan Elementary School	", data:"3527 S Wallace St  Chicago, IL 60609"},
{label:"Cyrus H McCormick Elementary School	", data:"2712 S Sawyer Ave  Chicago, IL 60623"},
{label:"John T McCutcheon Elementary School	", data:"4865 N Sheridan Rd  Chicago, IL 60640"},
{label:"James E McDade Elementary Classical School	", data:"8801 S Indiana Ave  Chicago, IL 60619"},
{label:"Mary E McDowell Elementary School	", data:"1419 E 89th St  Chicago, IL 60619"},
{label:"Francis M McKay Elementary School	", data:"6901 S Fairfield Ave  Chicago, IL 60629"},
{label:"Ronald E McNair Elementary School	", data:"4820 W Walton St  Chicago, IL 60651"},
{label:"James B McPherson Elementary School	", data:"4728 N Wolcott Ave  Chicago, IL 60640"},
{label:"Genevieve Melody Elementary School	", data:"412 S Keeler Ave  Chicago, IL 60624"},
{label:"Ralph H Metcalfe Elementary Community Academy	", data:"12339 S Normal Ave  Chicago, IL 60628"},
{label:"Arnold Mireles Elementary Academy	", data:"9000 S Exchange Ave  Chicago, IL 60617"},
{label:"Ellen Mitchell Elementary School	", data:"2233 W Ohio St  Chicago, IL 60612"},
{label:"Irvin C Mollison Elementary School	", data:"4415 S Dr Martin L King Jr Dr  Chicago, IL 60653"},
{label:"James Monroe Elementary School	", data:"3651 W Schubert Ave  Chicago, IL 60647"},
{label:"Moses Montefiore Special Elementary School	", data:"1310 S Ashland Ave  Chicago, IL 60608"},
{label:"Bernhard Moos Elementary School	", data:"1711 N California Ave  Chicago, IL 60647"},
{label:"Garrett A Morgan Elementary School	", data:"8407 S Kerfoot Ave  Chicago, IL 60620"},
{label:"Morgan Park High School	", data:"1744 W Pryor Ave  Chicago, IL 60643"},
{label:"Donald Morrill Math & Science Elementary School	", data:"6011 S Rockwell St  Chicago, IL 60629"},
{label:"Morton School of Excellence	", data:"431 N Troy St  Chicago, IL 60612"},
{label:"Mount Greenwood Elementary School	", data:"10841 S Homan Ave  Chicago, IL 60655"},
{label:"Mount Vernon Elementary School	", data:"10540 S Morgan St  Chicago, IL 60643"},
{label:"Wolfgang A Mozart Elementary School	", data:"2200 N Hamlin Ave  Chicago, IL 60647"},
{label:"Multicultural Academy of Scholarship	", data:"3120 S Kostner Ave  Chicago, IL 60623"},
{label:"John B Murphy Elementary School	", data:"3539 W Grace St  Chicago, IL 60618"},
{label:"Phillip Murray Elementary Language Academy	", data:"5335 S Kenwood Ave  Chicago, IL 60615"},
{label:"Henry H Nash Elementary School	", data:"4837 W Erie St  Chicago, IL 60644"},
{label:"National Teachers Elementary Academy	", data:"55 W Cermak Rd  Chicago, IL 60616"},
{label:"Near North Elementary School	", data:"739 N Ada St  Chicago, IL 60642"},
{label:"Jane A Neil Elementary School	", data:"8555 S Michigan Ave  Chicago, IL 60619"},
{label:"Louis Nettelhorst Elementary School	", data:"3252 N Broadway St  Chicago, IL 60657"},
{label:"New Field Elementary School	", data:"1707 W Morse Ave  Chicago, IL 60626"},
{label:"New Millennium High School of Health at Bowen	", data:"2710 E 89th St  Chicago, IL 60617"},
{label:"William K New Sullivan Elementary School	", data:"8331 S Mackinaw  Chicago, IL 60617"},
{label:"Walter L Newberry Math & Science Academy ES	", data:"700 W Willow St  Chicago, IL 60614"},
{label:"Nicholson Technology Academy	", data:"6006 S Peoria St  Chicago, IL 60621"},
{label:"Florence Nightingale Elementary School	", data:"5250 S Rockwell St  Chicago, IL 60632"},
{label:"William P Nixon Elementary School	", data:"2121 N Keeler Ave  Chicago, IL 60639"},
{label:"Alfred Nobel Elementary School	", data:"4127 W Hirsch St  Chicago, IL 60651"},
{label:"North River Elementary School	", data:"4416 N Troy St  Chicago, IL 60625"},
{label:"North-Grand High School	", data:"4338 W Wabansia Ave  Chicago, IL 60639"},
{label:"Northside Learning Center High School	", data:"3730 W Bryn Mawr Ave  Chicago, IL 60659"},
{label:"Northside College Preparatory High School	", data:"5501 N Kedzie Ave  Chicago, IL 60625"},
{label:"Northwest Middle School	", data:"5252 W Palmer St  Chicago, IL 60639"},
{label:"Norwood Park Elementary School	", data:"5900 N Nina Ave  Chicago, IL 60631"},
{label:"William B Ogden Elementary School	", data:"24 W Walton St  Chicago, IL 60610"},
{label:"Ogden International High School	", data:"1250 W Erie St  Chicago, IL 60622"},
{label:"Richard J Oglesby Elementary School	", data:"7646 S Green St  Chicago, IL 60620"},
{label:"Isabelle C O'Keeffe Elementary School	", data:"6940 S Merrill Ave  Chicago, IL 60649"},
{label:"William J Onahan Elementary School	", data:"6634 W Raven St  Chicago, IL 60631"},
{label:"Oriole Park Elementary School	", data:"5424 N Oketo Ave  Chicago, IL 60656"},
{label:"Orozco Fine Arts & Sciences Elementary School	", data:"1940 W 18th St  Chicago, IL 60608"},
{label:"Orr Academy High School	", data:"730 N Pulaski Rd  Chicago, IL 60624"},
{label:"Josefa Ortiz De Dominguez Elementary School	", data:"3000 S Lawndale Ave  Chicago, IL 60623"},
{label:"James Otis Elementary School	", data:"525 N Armour St  Chicago, IL 60622"},
{label:"Luke O'Toole Elementary School	", data:"6550 S Seeley Ave  Chicago, IL 60636"},
{label:"Anthony Overton Elementary School	", data:"221 E 49th St  Chicago, IL 60615"},
{label:"William Bishop Owen Scholastic Academy ES	", data:"8247 S Christiana Ave  Chicago, IL 60652"},
{label:"Jesse Owens Elementary Community Academy	", data:"12450 S State St  Chicago, IL 60628"},
{label:"Ignance Paderewski Elementary Learning Academy	", data:"2221 S Lawndale Ave  Chicago, IL 60623"},
{label:"John Palmer Elementary School	", data:"5051 N Kenneth Ave  Chicago, IL 60630"},
{label:"Park Manor Elementary School	", data:"7037 S Rhodes Ave  Chicago, IL 60637"},
{label:"Francis W Parker Elementary Community Academy	", data:"6800 S Stewart Ave  Chicago, IL 60621"},
{label:"Francis Parkman Elementary School	", data:"245 W 51st St  Chicago, IL 60609"},
{label:"Parkside Elementary Community Academy	", data:"6938 S East End Ave  Chicago, IL 60649"},
{label:"Louis Pasteur Elementary School	", data:"5825 S Kostner Ave  Chicago, IL 60629"},
{label:"Walter Payton College Preparatory High School	", data:"1034 N Wells St  Chicago, IL 60610"},
{label:"Elizabeth Peabody Elementary School	", data:"1444 W Augusta Blvd  Chicago, IL 60622"},
{label:"Peace & Education Coalition High School	", data:"4946 S Paulina St  Chicago, IL 60609"},
{label:"Ferdinand Peck Elementary School	", data:"3826 W 58th St  Chicago, IL 60629"},
{label:"Helen Peirce International Studies ES	", data:"1423 W Bryn Mawr Ave  Chicago, IL 60660"},
{label:"William Penn Elementary School	", data:"1616 S Avers Ave  Chicago, IL 60623"},
{label:"Manuel Perez Elementary School	", data:"1241 W 19th St  Chicago, IL 60608"},
{label:"John J Pershing Elementary Humanities Magnet	", data:"3113 S Rhodes Ave  Chicago, IL 60616"},
{label:"Pershing West Middle School	", data:"3200 S Calumet Ave  Chicago, IL 60616"},
{label:"Mary Gage Peterson Elementary School	", data:"5510 N Christiana Ave  Chicago, IL 60625"},
{label:"Phillips Achievement Academy High School	", data:"244 E Pershing Rd  Chicago, IL 60653"},
{label:"Wendell Phillips Academy High School	", data:"244 E Pershing Rd  Chicago, IL 60653"},
{label:"Phoenix Military Academy High School	", data:"145 S Campbell Ave  Chicago, IL 60612"},
{label:"Brian Piccolo Elementary Specialty School	", data:"1040 N Keeler Ave  Chicago, IL 60651"},
{label:"Josiah Pickard Elementary School	", data:"2301 W 21st Pl  Chicago, IL 60608"},
{label:"Pilsen Elementary Community Academy	", data:"1420 W 17th St  Chicago, IL 60608"},
{label:"John T Pirie Fine Arts & Academic Center ES	", data:"650 E 85th St  Chicago, IL 60619"},
{label:"Ambrose Plamondon Elementary School	", data:"2642 W 15th Pl  Chicago, IL 60608"},
{label:"Edgar Allan Poe Elementary Classical School	", data:"10538 S Langley Ave  Chicago, IL 60628"},
{label:"Nathaniel Pope Elementary School	", data:"1852 S Albany Ave  Chicago, IL 60623"},
{label:"Portage Park Elementary School	", data:"5330 W Berteau Ave  Chicago, IL 60641"},
{label:"Adam Clayton Powell Paideia Community Academy ES	", data:"7511 S South Shore Dr  Chicago, IL 60649"},
{label:"William H Prescott Elementary School	", data:"1632 W Wrightwood Ave  Chicago, IL 60614"},
{label:"Florence B Price Elementary School	", data:"4351 S Drexel Blvd  Chicago, IL 60653"},
{label:"Dr Jorge Prieto Math and Science	", data:"2231 N Central Ave  Chicago, IL 60639"},
{label:"A.N. Pritzker School	", data:"2009 W Schiller St  Chicago, IL 60622"},
{label:"Charles Allen Prosser Career Academy High School	", data:"2148 N Long Ave  Chicago, IL 60639"},
{label:"Ernst Prussing Elementary School	", data:"4650 N Menard Ave  Chicago, IL 60630"},
{label:"Pulaski International Academy Elmentary School	", data:"2230 W McLean Ave  Chicago, IL 60647"},
{label:"George M Pullman Elementary School	", data:"11311 S Forrestville Ave  Chicago, IL 60628"},
{label:"Al Raby High School	", data:"3545 W Fulton Blvd  Chicago, IL 60624"},
{label:"Asa Philip Randolph Elementary School	", data:"7316 S Hoyne Ave  Chicago, IL 60636"},
{label:"Ravenswood Elementary School	", data:"4332 N Paulina St  Chicago, IL 60613"},
{label:"William H Ray Elementary School	", data:"5631 S Kimbark Ave  Chicago, IL 60637"},
{label:"William C Reavis Math & Science Specialty ES	", data:"834 E 50th St  Chicago, IL 60615"},
{label:"Walter Reed Elementary School	", data:"6350 S Stewart Ave  Chicago, IL 60621"},
{label:"Frank W Reilly Elementary School	", data:"3650 W School St  Chicago, IL 60618"},
{label:"Peter A Reinberg Elementary School	", data:"3425 N Major Ave  Chicago, IL 60634"},
{label:"Paul Revere Elementary School	", data:"1010 E 72nd St  Chicago, IL 60619"},
{label:"Ellen H Richards Career Academy High School	", data:"5009 S Laflin St  Chicago, IL 60609"},
{label:"Hyman G Rickover Naval Academy High School	", data:"5900 N Glenwood Ave  Chicago, IL 60660"},
{label:"Robeson Achievement Academy High School	", data:"6835 S Normal Blvd  Chicago, IL 60621"},
{label:"Paul Robeson High School	", data:"6835 S Normal Blvd  Chicago, IL 60621"},
{label:"Jackie Robinson Elementary School	", data:"4225 S Lake Park Ave  Chicago, IL 60653"},
{label:"Philip Rogers Elementary School	", data:"7345 N Washtenaw Ave  Chicago, IL 60645"},
{label:"Theodore Roosevelt High School	", data:"3436 W Wilson Ave  Chicago, IL 60625"},
{label:"Betsy Ross Elementary School	", data:"6059 S Wabash Ave  Chicago, IL 60637"},
{label:"Wilma Rudolph Elementary Learning Center	", data:"110 N Paulina St  Chicago, IL 60612"},
{label:"Martha Ruggles Elementary School	", data:"7831 S Prairie Ave  Chicago, IL 60619"},
{label:"Irma C Ruiz Elementary School	", data:"2410 S Leavitt St  Chicago, IL 60608"},
{label:"William H Ryder Math & Science Specialty ES	", data:"8716 S Wallace St  Chicago, IL 60620"},
{label:"Martin A Ryerson Elementary School	", data:"646 N Lawndale Ave  Chicago, IL 60624"},
{label:"Albert R Sabin Elementary Magnet School	", data:"2216 W Hirsch St  Chicago, IL 60622"},
{label:"Alternative Safe School	", data:"4655 S Dearborn St  Chicago, IL 60609"},
{label:"Rueben Salazar Elementary Bilingual Center	", data:"160 W Wendell St  Chicago, IL 60610"},
{label:"Socorro Sandoval Elementary School	", data:"5534 S Saint Louis Ave  Chicago, IL 60629"},
{label:"Maria Saucedo Elementary Scholastic Academy	", data:"2850 W 24th Blvd  Chicago, IL 60623"},
{label:"Sauganash Elementary School	", data:"6040 N Kilpatrick Ave  Chicago, IL 60646"},
{label:"Sidney Sawyer Elementary School	", data:"5248 S Sawyer Ave  Chicago, IL 60632"},
{label:"Harriet E Sayre Elementary Language Academy	", data:"1850 N Newland Ave  Chicago, IL 60707"},
{label:"Jonathan Y Scammon Elementary School	", data:"4201 W Henderson St  Chicago, IL 60641"},
{label:"Theophilus Schmid Elementary School	", data:"9755 S Greenwood Ave  Chicago, IL 60628"},
{label:"High School of Leadership at South Shore	", data:"7627 S Constance Ave  Chicago, IL 60649"},
{label:"Franz Peter Schubert Elementary School	", data:"2727 N Long Ave  Chicago, IL 60639"},
{label:"Carl Schurz High School	", data:"3601 N Milwaukee Ave  Chicago, IL 60641"},
{label:"Nicholas Senn High School	", data:"5900 N Glenwood Ave  Chicago, IL 60660"},
{label:"William H Seward Communication Arts Academy ES	", data:"4600 S Hermitage Ave  Chicago, IL 60609"},
{label:"Austin O Sexton Elementary School	", data:"6020 S Langley Ave  Chicago, IL 60637"},
{label:"Mark Sheridan Elementary Math & Science Academy	", data:"533 W 27th St  Chicago, IL 60616"},
{label:"William T Sherman Elementary School	", data:"1000 W 52nd St  Chicago, IL 60609"},
{label:"Jesse Sherwood Elementary School	", data:"245 W 57th St  Chicago, IL 60621"},
{label:"James Shields Elementary School	", data:"4250 S Rockwell St  Chicago, IL 60632"},
{label:"Beulah Shoesmith Elementary School	", data:"1330 E 50th St  Chicago, IL 60615"},
{label:"John D Shoop Math-Science Technical Academy ES	", data:"11140 S Bishop St  Chicago, IL 60643"},
{label:"Neal F Simeon Career Academy High School	", data:"8147 S Vincennes Ave  Chicago, IL 60620"},
{label:"Simpson Academy High School for Young Women	", data:"1321 S Paulina St  Chicago, IL 60608"},
{label:"Mark Skinner Elementary School	", data:"1260 W Adams St  Chicago, IL 60607"},
{label:"Skinner North	", data:"640 W Scott St  Chicago, IL 60610"},
{label:"Wendell Smith Elementary School	", data:"744 E 103rd St  Chicago, IL 60628"},
{label:"Washington D Smyser Elementary School	", data:"4310 N Melvina Ave  Chicago, IL 60634"},
{label:"John M Smyth Elementary School	", data:"1059 W 13th St  Chicago, IL 60608"},
{label:"Hannah G Solomon Elementary School	", data:"6206 N Hamlin Ave  Chicago, IL 60659"},
{label:"Eric Solorio Academy High School	", data:"5400 S St Louis Ave  Chicago, IL 60632"},
{label:"Songhai Elementary Learning Institute	", data:"11725 S Perry Ave  Chicago, IL 60628"},
{label:"South Loop Elementary School	", data:"1212 S Plymouth Ct  Chicago, IL 60605"},
{label:"South Shore International College Prep HS School	", data:"1955 East 75th St  Chicago, IL 60603"},
{label:"South Shore Fine Arts Academy	", data:"1415 E 70th St  Chicago, IL 60637"},
{label:"Southside Occupational Academy High School	", data:"7342 S Hoyne Ave  Chicago, IL 60636"},
{label:"Spencer Technology Academy	", data:"214 N Lavergne Ave  Chicago, IL 60644"},
{label:"John Spry Elementary Community School	", data:"2400 S Marshall Blvd  Chicago, IL 60623"},
{label:"Spry Community Links High School	", data:"2400 S Marshall Blvd  Chicago, IL 60623"},
{label:"Amos Alonzo Stagg Elementary School	", data:"7424 S Morgan St  Chicago, IL 60621"},
{label:"Charles P Steinmetz Academic Centre High School	", data:"3030 N Mobile Ave  Chicago, IL 60634"},
{label:"STEM Magnet Academy	", data:"1522 W Fillmore  Chicago, IL 60607"},
{label:"Adlai E Stevenson Elementary School	", data:"8010 S Kostner Ave  Chicago, IL 60652"},
{label:"Graeme Stewart Elementary School	", data:"4525 N Kenmore Ave  Chicago, IL 60640"},
{label:"Frederick Stock Elementary School	", data:"7507 W Birchwood Ave  Chicago, IL 60631"},
{label:"Joseph Stockton Elementary School	", data:"4420 N Beacon St  Chicago, IL 60640"},
{label:"Stone Elementary Scholastic Academy	", data:"6239 N Leavitt St  Chicago, IL 60659"},
{label:"Harriet Beecher Stowe Elementary School	", data:"3444 W Wabansia Ave  Chicago, IL 60647"},
{label:"Suder Montessori Magnet ES	", data:"2022 W Washington Blvd  Chicago, IL 60612"},
{label:"Roger C Sullivan High School	", data:"6631 N Bosworth Ave  Chicago, IL 60626"},
{label:"Charles Sumner  Math & Science Community Acad ES	", data:"4320 W 5th Ave  Chicago, IL 60624"},
{label:"Elizabeth H Sutherland Elementary School	", data:"10015 S Leavitt St  Chicago, IL 60643"},
{label:"George B Swift Elementary Specialty School	", data:"5900 N Winthrop Ave  Chicago, IL 60660"},
{label:"William Howard Taft High School	", data:"6530 W Bryn Mawr Ave  Chicago, IL 60631"},
{label:"Mancel Talcott Elementary School	", data:"1840 W Ohio St  Chicago, IL 60622"},
{label:"Talman Elementary School	", data:"5450 S Talman Ave  Chicago, IL 60632"},
{label:"Henry O Tanner Elementary School	", data:"7350 S Evans Ave  Chicago, IL 60619"},
{label:"Tarkington School of Excellence ES	", data:"3330 W 71st St  Chicago, IL 60629"},
{label:"Douglas Taylor Elementary School	", data:"9912 S Avenue H  Chicago, IL 60617"},
{label:"TEAM Englewood Community Academy High School	", data:"6201 S Stewart Ave  Chicago, IL 60621"},
{label:"Telpochcalli Elementary School	", data:"2832 W 24th Blvd  Chicago, IL 60623"},
{label:"Velma F Thomas Early Childhood Center	", data:"3625 S Hoyne Ave  Chicago, IL 60609"},
{label:"James N Thorp Elementary School	", data:"8914 S Buffalo Ave  Chicago, IL 60617"},
{label:"Ole A Thorp Elementary Scholastic Academy	", data:"6024 W Warwick Ave  Chicago, IL 60634"},
{label:"Tilden Achievement Academy High School	", data:"4747 S Union Ave  Chicago, IL 60609"},
{label:"Edward Tilden Career Community Academy HS	", data:"4747 S Union Ave  Chicago, IL 60609"},
{label:"Emmett Louis Till Math and Science Academy	", data:"6543 S Champlain Ave  Chicago, IL 60637"},
{label:"George W Tilton Elementary School	", data:"223 N Keeler Ave  Chicago, IL 60624"},
{label:"Enrico Tonti Elementary School	", data:"5815 S Homan Ave  Chicago, IL 60629"},
{label:"Lyman Trumbull Elementary School	", data:"5200 N Ashland Ave  Chicago, IL 60640"},
{label:"Turner-Drew Elementary Language Academy	", data:"9300 S Princeton Ave  Chicago, IL 60620"},
{label:"Mark Twain Elementary School	", data:"5134 S Lotus Ave  Chicago, IL 60638"},
{label:"Uplift Community High School	", data:"900 W Wilson Ave  Chicago, IL 60640"},
{label:"John H Vanderpoel Elementary Magnet School	", data:"9510 S Prospect Ave  Chicago, IL 60643"},
{label:"Jacqueline B Vaughn Occupational High School	", data:"4355 N Linder Ave  Chicago, IL 60641"},
{label:"Barbara Vick Early Childhood & Family Center	", data:"2554 W 113th St  Chicago, IL 60655"},
{label:"VOISE Academy High School	", data:"231 N Pine Ave  Chicago, IL 60644"},
{label:"Alessandro Volta Elementary School	", data:"4950 N Avers Ave  Chicago, IL 60625"},
{label:"Alexander von Humboldt Elementary School	", data:"2620 W Hirsch St  Chicago, IL 60622"},
{label:"Carl von Linne Elementary School	", data:"3221 N Sacramento Ave  Chicago, IL 60618"},
{label:"Friedrich W von Steuben Metropolitan Science HS	", data:"5039 N Kimball Ave  Chicago, IL 60625"},
{label:"Charles H Wacker Elementary School	", data:"9746 S Morgan St  Chicago, IL 60643"},
{label:"James Wadsworth Elementary School	", data:"6420 S University Ave  Chicago, IL 60637"},
{label:"John A Walsh Elementary School	", data:"2015 S Peoria St  Chicago, IL 60608"},
{label:"James Ward Elementary School	", data:"2701 S Shields Ave  Chicago, IL 60616"},
{label:"Laura S Ward Elementary School	", data:"410 N Monticello Ave  Chicago, IL 60624"},
{label:"Joseph Warren Elementary School	", data:"9239 S Jeffery Ave  Chicago, IL 60617"},
{label:"George Washington High School	", data:"3535 E 114th St  Chicago, IL 60617"},
{label:"George Washington Elementary School	", data:"3611 E 114th St  Chicago, IL 60617"},
{label:"Harold Washington Elementary School	", data:"9130 S University Ave  Chicago, IL 60619"},
{label:"Thomas J Waters Elementary School	", data:"4540 N Campbell Ave  Chicago, IL 60625"},
{label:"Daniel Webster Elementary School	", data:"4055 W Arthington St  Chicago, IL 60624"},
{label:"Wells Community Academy High School	", data:"936 N Ashland Ave  Chicago, IL 60622"},
{label:"Ida B Wells Preparatory Elementary Academy	", data:"244 E Pershing Rd  Chicago, IL 60653"},
{label:"Daniel S Wentworth Elementary School	", data:"6950 S Sangamon St  Chicago, IL 60621"},
{label:"West Park Elementary Academy	", data:"1425 N Tripp Ave  Chicago, IL 60651"},
{label:"West Pullman Elementary School	", data:"11941 S Parnell Ave  Chicago, IL 60628"},
{label:"West Ridge Elementary School	", data:"6700 N Whipple St  Chicago, IL 60645"},
{label:"Oliver S Westcott Elementary School	", data:"409 W 80th St  Chicago, IL 60620"},
{label:"John Whistler Elementary School	", data:"11533 S Ada St  Chicago, IL 60643"},
{label:"Edward White Elementary Career Academy	", data:"1136 W 122nd St  Chicago, IL 60643"},
{label:"Eli Whitney Elementary School	", data:"2815 S Komensky Ave  Chicago, IL 60623"},
{label:"John Greenleaf Whittier Elementary School	", data:"1900 W 23rd St  Chicago, IL 60608"},
{label:"Wildwood Elementary School	", data:"6950 N Hiawatha Ave  Chicago, IL 60646"},
{label:"Williams Preparatory Academy Middle School	", data:"2710 S Dearborn St  Chicago, IL 60616"},
{label:"Williams Multiplex Elementary School	", data:"2710 S Dearborn St  Chicago, IL 60616"},
{label:"Daniel Hale Williams Prep School of Medicine	", data:"4934 S Wabash Ave  Chicago, IL 60615"},
{label:"Woodlawn Community Elementary School	", data:"6657 S Kimbark Ave  Chicago, IL 60637"},
{label:"Granville T Woods Math & Science Academy ES	", data:"6206 S Racine Ave  Chicago, IL 60636"},
{label:"Carter G Woodson South Elementary School	", data:"4414 S Evans  Chicago, IL 60653"},
{label:"World Language Academy High School	", data:"3120 S Kostner Ave  Chicago, IL 60623"},
{label:"Elihu Yale Elementary School	", data:"7025 S Princeton Ave  Chicago, IL 60621"},
{label:"Richard Yates Elementary School	", data:"1839 N Richmond St  Chicago, IL 60647"},
{label:"Consuella B York Alternative High School	", data:"2700 S California Ave  Chicago, IL 60608"},
{label:"Ella Flagg Young Elementary School	", data:"1434 N Parkside Ave  Chicago, IL 60651"},
{label:"Whitney M Young Magnet High School	", data:"211 S Laflin St  Chicago, IL 60607"},
{label:"Emiliano Zapata Elementary Academy	", data:"2728 S Kostner Ave  Chicago, IL 60623"},
]; 

var dir:Directions;
var polyline:IPolyline;
var map:Map;
var startField:TextField;
var endField:TextField;
var so:SharedObject;

function setupMap()
{
	so = SharedObject.getLocal("locations");
	loadDestinations(startAddr_cmb.dataProvider, "from");
	loadDestinations(endAdd_cmb.dataProvider, "to");
	
	for(var i:uint = 0; i < items.length; i++){
		var item:Object = items[i];
		addItem(startAddr_cmb.dataProvider, item.label, item.data);
		addItem(endAdd_cmb.dataProvider, item.label, item.data);
	}

	endAdd_cmb.addEventListener(Event.CHANGE, onSelectEndAddress);
	startAddr_cmb.addEventListener(Event.CHANGE, onSelectStartAddress); 

	var holder:Sprite = new Sprite();
	startField = createNavTextField(10);
	holder.addChild(startField);
	
	endField = createNavTextField(startField.x + startField.width + 10);
	holder.addChild(endField);
	
	var search:SimpleButton = new SimpleButton();
	search.upState = createButtonStateState(0xcccccc);
	search.overState = createButtonStateState(0xc6c6c6);
	search.downState = createButtonStateState(0x999999);
	search.hitTestState = createButtonStateState(0x999999);
	search.useHandCursor = true;	
	search.addEventListener(MouseEvent.CLICK, function(event:MouseEvent):void{
		if(dir == null){
			dir = new Directions();
		}else{
			dir.removeEventListener(DirectionsEvent.DIRECTIONS_SUCCESS,onDirectionsLoaded);
		}
		dir.addEventListener(DirectionsEvent.DIRECTIONS_SUCCESS,onDirectionsLoaded);
		dir.load(startField.text + " to " + endField.text);
	});
	
	var format:TextFormat = new TextFormat(); 
	format.align = TextFormatAlign.CENTER; 
	var label:TextField = new TextField();
	label.defaultTextFormat = format; 
	label.selectable = false;
	label.mouseEnabled = false;
	label.text = "Caculate";
	label.width = search.width;

	var sprite:Sprite = new Sprite();
	sprite.addChild(search);
	sprite.addChild(label);
	sprite.x = endField.x + endField.width + 10;
	sprite.y = endField.y;

	holder.addChild(sprite);

	map = new Map();
	map.sensor ="false";
	map.key ="ABQIAAAAjf2cvxDuc5J1E9CrJXmy9RQrAB2acdB4QgEQtVMeGDLCPkNwtRR8XAwx0MS9MI4RYmgwJ-jCIN9QaQ";
	map.setSize(new Point(400,400));
	map.x = startField.x;
	map.y = startField.y + startField.height + 5;
	holder.addChild(map);

	addChild(holder);
}
setupMap();

function createNavTextField(x:uint):TextField{
	var textField:TextField = new TextField();
	textField.autoSize = TextFieldAutoSize.NONE;
	textField.type = TextFieldType.INPUT;
	textField.multiline = false;
	textField.tabEnabled = true;
	textField.wordWrap = false;
	textField.border = true;
	textField.background = true;
	textField.x = x;
	textField.y = 10
	textField.width = 195;
	textField.height = 22;
	return textField;
}

function createButtonStateState(color:Number):Sprite {
	var sprite:Sprite = new Sprite;
	sprite.graphics.lineStyle(2, 0x000000);
	sprite.graphics.beginFill(color);
	sprite.graphics.drawRoundRect(0, 0, 80, 26, 10);
	sprite.graphics.endFill();
	return sprite;
}

function loadDestinations(dp:DataProvider, name:String):void{
	if(so.data[name] != null){
		for(var i:Number = 0; i < so.data[name].length; i++){
			var item:String = so.data[name][i];
			addItem(dp, item, item);
		}
	}
}

function addItem(dp:DataProvider, label:String, data:String):void{
	var item:SimpleCollectionItem = new SimpleCollectionItem();
	item.label = label;
	item.data = data;
	dp.addItem(item);
}

function onSelectStartAddress(e:Event):void {
	var item:SimpleCollectionItem = e.target.selectedItem as SimpleCollectionItem;
    startField.text = item.data;
}

function onSelectEndAddress(e:Event):void {
	var item:SimpleCollectionItem = e.target.selectedItem as SimpleCollectionItem;
    endField.text = item.data;
}

function onDirectionsLoaded(event:DirectionsEvent):void
{
	var ONE_METER:Number = 0.000621371192; // Miles 
	var returnedDirection:Directions = event.directions as Directions;
	var trainingTime: Number = Number(trainingTime_txt.text);
	var trainingCost: Number = Number(trainingCost_txt.text);
	var payRate: Number = Number(payRate_txt.text);
	var overallTrainingCost : Number = Math.round(trainingCost + (trainingTime * payRate));
	
	var startLatLng:LatLng = returnedDirection.getRoute(0).getStep(0).latLng;
	var endLatLng:LatLng = returnedDirection.getRoute(returnedDirection.numRoutes - 1).endLatLng;
	var returnedDistance = Number(returnedDirection.distance * ONE_METER).toFixed(1);
	var returnedTime = Math.round(returnedDirection.duration / 60) + 30;
	var directionsSteps = new Array;
	
	returnedDistance_txt.text = "The total distance to your destination is " +  returnedDistance + " Miles";
	returnedTime_txt.text = "You should allow at least " +  returnedTime + " Minutes to arrive and find adequate parking due to typical traffic flow";
	overallTrainingCost_txt.text = " The estimated total cost to attend this training is  " + "$" + overallTrainingCost;
	
	
	polyline = returnedDirection.createPolyline();
	
// Remove everything from map and add back the markers and polyline 
	map.clearOverlays();
	map.addOverlay(polyline);
	map.addOverlay(new Marker(startLatLng));
	map.addOverlay(new Marker(endLatLng));
	map.addControl(new ZoomControl());  
	map.addControl(new PositionControl());  
	map.addControl(new MapTypeControl());
	map.setCenter(returnedDirection.bounds.getCenter(), map.getBoundsZoomLevel(returnedDirection.bounds));
	
	trace("Distance: " + Number(returnedDirection.distance * ONE_METER).toFixed(1) + " mi, " + 
		Math.round(returnedDirection.duration / 60) +  " mins");

	
	} 

//Open in New WindowSelect All;

Open in new window

0
 
dgofmanCommented:
I coulndn't find text fields for these outputs in your FLA

      returnedDistance_txt.text = "The total distance to your destination is " +  returnedDistance + " Miles";
      returnedTime_txt.text = "You should allow at least " +  returnedTime + " Minutes to arrive and find adequate parking due to typical traffic flow";
      overallTrainingCost_txt.text = " The estimated total cost to attend this training is  " + "$" + overallTrainingCost;
      
0
 
dgofmanCommented:
Here is my solution


MapSimple2.fla
0
 
fool5683Author Commented:
Awesome Solution!
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now