﻿	/* Google Maps API customised for www.flexicar.com.au
	Created by Ollie Nam for Flexicar 30/5/2007.
	See http://www.google.com/apis/maps/documentation/
	Copyright 2007 Flexicar, Australia
	
	The function below executes the plotting of pods on the map.
	If passed a true value, distances will be calculated to dpoint (calculated by address input).
	If this is done during load without a value for dpoint the map will fail.
	*/

function plotPods(dcalc) {

// Each pod entry is below, in the following form:
// createMarker(Pod Latitude, Pod Longitude, "Pod Title", "Pod Info", Pod Icon, dcalc));
// Pod Icon: ficon(#) for flying f icon

// St Kilda - Fitzroy Street
 createMarker(-37.860044128957334, 144.9769914150238, "St Kilda - Fitzroy Street", "50m west of the Grey Sreet intersection. Outside Chronicles Book Shop.", ficon, dcalc);

// St Kilda - Acland Street
 createMarker(-37.86388965730226, 144.97543036937714, "St Kilda - Acland Street", "Residental part of Acland Street, in front of the Church and near the roundabout with Eildon Street.", ficon, dcalc);

// St Kilda - Carlisle Street
 createMarker(-37.867063761080175, 144.98056948184967, "St Kilda - Carlisle Street", "Northern side of Carlisle Street, up from the National Theatre, between Barkley and Acland Streets. (2 cars)", ficon2, dcalc);

// Fitzroy - Napier Street
 createMarker(-37.80232229486398, 144.98010009527206, "Fitzroy - Napier Street", "Outside Fitzroy Town Hall", ficon, dcalc);

// Fitzroy - Victoria Street
 createMarker(-37.79899704731444, 144.97810184955597, "Fitzroy - Victoria Street", "On the corner of Victoria Street and Brunswick Street. Opposite the vibrant Red Tongue Cafe.", ficon, dcalc);

// Carlton - Leicester Street
 createMarker(-37.805199999999999, 144.96015, "Carlton - Leicester Street", "On the west side of the street, near the corner of Berkeley St, down towards Victoria St.", ficon, dcalc);

// Carlton - Carlton Street
 createMarker(-37.80079850657008, 144.9702885746956, "Carlton - Carlton Street", "On the south side of the street, near the corner of Rathdowne St.", ficon, dcalc);

// Carlton - Keppel Street
 createMarker(-37.79683947711776, 144.9673756957054, "Carlton - Keppel Street", "Near the corner of Lygon and Keppel Streets.", ficon, dcalc);

// Carlton - Grattan Street
 createMarker(-37.800743403761885, 144.96659517288208, "Carlton - Grattan Street", "Near the corner of Lygon and Grattan Streets. The car is located on the Southern side of Grattan Street, on the western side of Lygon Street", ficon, dcalc);

// St Kilda - Blessington Street
 createMarker(-37.87018055982703, 144.98120784759521, "St Kilda - Blessington Street", "Located on the Northern side of Blessington Street, Between Herbert and Mitford streets. Close to 7/11 .", ficon, dcalc);

// Richmond - Lennox Street
 createMarker(-37.82193587749157, 144.9940100312233, "Richmond - Lennox Street", "On the Eastern side of Lennox Street to the North of Richmond Terace.", ficon, dcalc);

// Richmond - Lyndhurst Street
 createMarker(-37.818800000000003, 145.0008, "Richmond - Lyndhurst Street", "On the Eastern side of Lyndhurst Street to the South of Bridge Road across from the Richmond Town Hall", ficon, dcalc);

// Richmond - Muir Street
 createMarker(-37.815199999999997, 144.99170000000001, "Richmond - Muir Street", "Eastern side of Muir Street to the North of Freeman Street.", ficon, dcalc);

// Balaclava - Carlisle Street
 createMarker(-37.86889320241328, 144.99468863010406, "Balaclava - Carlisle Street", "Located on the Northern side of Carlisle street between Blenheim and Westbury Streets. Outside the BP service station.", ficon, dcalc);

// Southbank - Rear of carpark, 135 Sturt Street
 createMarker(-37.82766258614714, 144.96703773736954, "Southbank - Rear of carpark, 135 Sturt Street", "Hayball Leonard Stent carpark. 135 Sturt Street, Southbank.", ficon, dcalc);

// Fitzroy - Kerr Street
 createMarker(-37.797382054728835, 144.9843594431877, "Fitzroy - Kerr Street", "Corner of Kerr & Smith Streets on the south side of Kerr, alongside the Sportpower store.", ficon, dcalc);

// Brunswick - Union Street
 createMarker(-37.774255389192525, 144.95964288711548, "Brunswick - Union Street", "Southern side of Union Street, to the West of Sydney Road, located in the council’s “off street” parking bay, right at the front.", ficon, dcalc);

// Brunswick - Glenlyon Road
 createMarker(-37.77254232906895, 144.97100740671158, "Brunswick - Glenlyon Road", "On the Northern side of Glenlyon Road, to the West of Lygon Street. Outside 149 Glenlyon Road.", ficon, dcalc);

// Brunswick - Victoria Street
 createMarker(-37.766798623775685, 144.96030807495117, "Brunswick - Victoria Street", "On the Northern side of Victoria Street to the West of Sydney Road, near corner of Boase Street. Outside 307 Victoria Street.", ficon, dcalc);

// Brunswick - Blyth Street
 createMarker(-37.766616276618805, 144.97346699237823, "Brunswick - Blyth Street", "On the Northern side of Blyth Street to the east of Lygon Street.", ficon, dcalc);

// Fitzroy North - Best Street
 createMarker(-37.78311263366956, 144.98330801725388, "Fitzroy North - Best Street", "The first bay on the Western side of Best Street to the North of Scotchmer Street.", ficon, dcalc);

// Fitzroy North - Newry Street
 createMarker(-37.790599999999998, 144.9794, "Fitzroy North - Newry Street", "Newry Street, near the corner with St George Road. Northside of Newry Street, after the Loading Zone, near the Sandwich Bar. Across the road from the Lord Newry Hotel.", ficon, dcalc);

// Fitzroy North - Park Street
 createMarker(-37.78011299164376,144.97766464948654, "Fitzroy North - Park Street", "Park Street, near the corner of Nicholson Street. The park is in on the north side of Park St, west of Nicholson St, right next to the bike trail.", ficon, dcalc);

// Fitzroy North - Piedimonte's car park
 createMarker(-37.78373, 144.98337, "Fitzroy North - Piedimonte's car park", "The first park on the right as you enter the car park from St. Georges Rd.", ficon, dcalc);

// Carlton North - Rathdowne Street
 createMarker(-37.789000000000001, 144.97200000000001, "Carlton North - Rathdowne Street", "Rathdowne Street, near the corner with Curtain Street, directly infront of the park in the of Rathdowne Village.", ficon, dcalc);

// Carlton North - Pigdon Street
 createMarker(-37.781700000000001, 144.96979999999999, "Carlton North - Pigdon Street", "Pigdon Street, near the corner with Lygon Street. Across Lygon Street from the flower shops on the Princes Hill side.", ficon, dcalc);

// CBD - 152 Little Lonsdale Street
 createMarker(-37.809605950064416, 144.96736228466034, "CBD - 152 Little Lonsdale Street", "Two cars available outside the Flexicar Office.", ficon2, dcalc);

// Southbank - Wells Street
 createMarker(-37.8267452409565, 144.96891260147095, "Southbank - Wells Street", "Located on the Western side of Wells Street at the end of Wadey Street.", ficon, dcalc);

// Manly - Whistler Street Carpark
 createMarker(-33.79647, 151.28674, "Manly - National Carpark, Central Avenue", "Located on the ground level of the car park, first bay on the right.", ficon2, dcalc);

// CBD - City Square Carpark
 createMarker(-37.816299999999998, 144.96729999999999, "CBD - City Square Carpark", "Located on the right side of the middle row of parks when you come out of the elevators on L2. Pedestrian access next to Starbucks on Swanston St near the corner of Collins St. (3 cars)", ficon3, dcalc);

// 562 St Kilda Road - Parkview Hotel Car Park (Roy St)
 createMarker(-37.84613417732093, 144.97854441404343, "562 St Kilda Road - Parkview Hotel Car Park (Roy St)", "Two cars are located in the underground car park at the Parkview Hotel on Roy St. When facing the hotel entrance, head left down the ramp into the car park and the cars are in front of you, just to your right.", ficon2, dcalc);

// Port Melbourne - Liardet St
 createMarker(-37.83865712939884, 144.94254380464554, "Port Melbourne - Liardet St", "Halfway down Bay St, just off to the left heading towards the bay.", ficon, dcalc);

// Port Melbourne - Rouse St
 createMarker(-37.842100000000002, 144.9393, "Port Melbourne - Rouse St", "Just off the south end of Bay St, to the left heading towards the bay.", ficon, dcalc);

// Albert Park - Montague St
 createMarker(-37.84092574160537, 144.95586097240448, "Albert Park - Montague St", "Opposite the Albert Park Hotel, near the round-a-bout with Bridport St", ficon, dcalc);

// South Melbourne - Park St
 createMarker(-37.83463446058378, 144.9638244509697, "South Melbourne - Park St", "Outside of the Water Rat Hotel, near intersection with Moray St, SE corner.", ficon, dcalc);

// South Melbourne - York St
 createMarker(-37.83082977576268, 144.95933711528778, "South Melbourne - York St", "Just off Clarendon St, to the left heading towards the city on the north corner.", ficon, dcalc);

// North Melbourne - Royal Melbourne Hospital
 createMarker(-37.800183895997044, 144.9543133378029, "North Melbourne - Royal Melbourne Hospital", "On Wreckyn St, south west of Flemmington Road, near the Royal Melbourne Hospital. Wreckyn St is the continuation of Grattan Street.", ficon, dcalc);

// North Melbourne - Errol St
 createMarker(-37.80538461158759, 144.94920909404755, "North Melbourne - Errol St", "Right at the south end of Errol St, in the small parking section, just as you cross over Victoria St, heading toward King St. Car is located in the first bay on the right hand side.", ficon, dcalc);

// West/North Melbourne - North Melbourne Station
 createMarker(-37.80638698940797, 144.94229167699814, "West/North Melbourne - North Melbourne Station", "Located at the East entrance of the station, on Adderley St", ficon, dcalc);

// CBD - Flagstaff Gardens
 createMarker(-37.811534292462674, 144.95630621910095, "CBD - Flagstaff Gardens", "The corner of William and La Trobe streets on Flagstaff Gardens. It is located on the NW corner of the intersection, on William St.", ficon, dcalc);

// Clifton Hill - Queens Parade
 createMarker(-37.78957363984066, 144.9892196059227, "Clifton Hill - Queens Parade", "East side of the street, in the service lane, outside Bendigo Bank", ficon, dcalc);

// Clifton Hill - North Terrace
 createMarker(-37.79021377439333, 144.993959069252, "Clifton Hill - North Terrace", "On the south side, first bay closest to Hoddle St, after the bus stop.", ficon, dcalc);

// Collingwood - Langridge St
 createMarker(-37.806516259130085, 144.98393297195435, "Collingwood - Langridge St", "Near the corner of Oxford St", ficon, dcalc);

// Collingwood - Wellington St
 createMarker(-37.79477510243896, 144.98816281557083, "Collingwood - Wellington St", "East side, first bay closest to Alexandra Parade.", ficon, dcalc);

// Abbotsford - Albert St
 createMarker(-37.810267101702834, 144.99915182590485, "Abbotsford - Albert St", "On the east side of the street, near the corner of Victoria St.", ficon, dcalc);

// Abbotsford - Stanton St
 createMarker(-37.8042423505091, 144.993709623814, "Abbotsford - Stanton St", "Outside the Collingwood Station, opposite the town hall.", ficon, dcalc);

// Sydney - Goulburn St Car Park
 createMarker(-33.8785, 151.209, "Sydney - Goulburn St Car Park", "In the council car park, on the ground floor as you enter from Goulburn St. (3 cars)", nicon, dcalc); 

// Docklands New Quay - Dopel Way
 createMarker(-37.814276, 144.93974, "Docklands New Quay - Doepel Way", "Just off the corner with Docklands Drive.", ficon, dcalc);

// Docklands Victoria Harbour - Merchant St
 createMarker(-37.81998026254583, 144.94378298521042, "Docklands Victoria Harbour - Bourke St", "On the south side of Bourke St, opposite the Safeway entrance. Merchant St used to be called Buckley St as shown in Google Map. ", ficon, dcalc);

// Docklands Victoria Harbour - Merchant St
 createMarker(-37.81996119345595, 144.9437776207924, "Docklands Victoria Harbour - Merchant St", "On the south side of Bourke St, opposite the Safeway entrance. Merchant St used to be called Buckley St as shown in Google Map.", ficon, dcalc);

// Surry Hills - Crown St
 createMarker (-33.8864, 151.2139, "Surry Hills - Crown St", "Outside the Clock Hotel, near the corner of Collins St.", ficon, dcalc);

// North Melbourne - Queen Vic Markets
 createMarker (-37.80585295471502, 144.95536744594574, "North Melbourne - Queen Vic Markets", "On the South Side of Victoria St, just west of Peel St intersection.", ficon, dcalc);

// Kensington - Bellair St
 createMarker (-37.79441478472388, 144.9302378296852, "Kensington - Bellair St", "Near the intersection of Macaulay Rd", ficon, dcalc);

// East Melbourne - Nicholson St
 createMarker (-37.808637521754086, 144.97313976287842, "East Melbourne - Nicholson St", "Near the intersection of Victoria Pde", ficon, dcalc);

// East Melbourne
 createMarker (-37.809438542139794, 144.98535722494125, "East Melbourne - Outside Tribeca Apartments", "Cnr Wellington St & Victoria Pde", ficon, dcalc);

// South Yarra - Toorak Rd East
 createMarker (-37.838057661857746, 144.9840697646141, "South Yarra - Toorak Rd East", "On the south side of Toorak Rd, opposite the intersection with Walsh St, closer to Punt Rd.", ficon, dcalc);

// South Yarra - Toorak Rd West
 createMarker (-37.83717857520451, 144.9773159623146, "South Yarra - Toorak Rd West", "On the south side of Toorak Rd, opposite the intersection with Adams St, closer to St.Kilda Rd.", ficon, dcalc);

// Surry Hills - Riley St
 createMarker (-33.8830463791032, 151.213046908379, "Surry Hills - Riley St", "Down from the intersection with Albion Street, adjacent to the Frog Hollow Reserve.", ficon, dcalc);

// Yarraville - Ballarat St
 createMarker (-37.81660071913641, 144.8908817768097, "Yarraville - Ballarat St", "Near intersection with Anderson Street", ficon, dcalc);

// Brunswick - Edward St
 createMarker (-37.77389, 144.9621, "Brunswick - Edward St", "Car is located in the first central bay in the Council carpark on Edward street. The carpark is on the north side of Edward street, approximately 80m east of Sydney road.", ficon, dcalc);

// Brunswick - Sydney Rd
 createMarker (-37.76151, 144.96334, "Brunswick - Sydney Rd", "This car is located in first bay on the right hand side of the Council carpark between 680 and 692 Sydney Road. The carpark is approcimately 60m south of Albion Street and opposite William Street.", ficon, dcalc);

// Brunswick West - Grantham St
 createMarker (-37.77246, 144.94939, "Brunswick West - Grantham St", "This park is located on the western side of Grantham Street, 100m north of Union Street, in front of Union Square.", ficon, dcalc);

// St Kilda - Fitzroy Street
 createMarker(-37.7961861532804, 144.985080957413, "Collingwood - Hotham Street", "Near the intersection with Smith Street. The first park on the north side of the street.", ficon, dcalc);

// Clifton Hill - Dummett Crescent (McDonald's car park)
 createMarker(-37.7874, 144.99336, "Clifton Hill - Dummett Crescent (McDonald's car park)", "The first park on the right as you enter the car park from Queens Parade. If you are are entering from Heidelberg Rd, it is the last park on the left.", ficon, dcalc);

 // VIC CBD - 34-60 Little Collins Street
 createMarker(-37.81256, 144.97179, "VIC CBD - 34-60 Little Collins Street", "The car is located on Lower Level 2 of the Secure 'Parkade' building in Bay 197. The carpark entry is on McIlwraith Place which can be accessed from either Little Collins St or Bourke St.", ficon, dcalc);
 
 // VIC CBD - 376 Flinders Street (Bay 46 - Secure)
 createMarker(-37.81897, 144.96166, "VIC CBD - 376 Flinders Street (Bay 46 - Secure)", "The Pod is located on Level 1 of the Secure Parking building in Bay 46. You can enter this carpark from either Flinders St or Market Street.", ficon, dcalc);
 
 // Yarraville - Sommerville Rd
 createMarker (-37.81329, 144.88816, "Yarraville - Sommerville Rd", "The north side of Sommerville road, to the west of Story street.", ficon, dcalc);
 
 // VIC Balaclava - St. Kilda Town Hall
 createMarker (-37.8683, 144.98928, "VIC Balaclava - St. Kilda Town Hall", "The Pod is located on the south side of Carlisle Street, approximately 200m east of St. Kilda Road. Outside the St. Kilda Town Hall.", ficon, dcalc);
 
 // VIC Albert Park - Albert Park Primary School (Victoria Ave)
 createMarker (-37.84215, 144.95278, "VIC Albert Park - Albert Park Primary School(Victoria Ave)", "Located on the Western side of Victoria Avenue, outside the Albert Park Primary School, in the first park on the southern side of the pedestrian crossing.", ficon, dcalc);
 
 // VIC Fitzroy - Westgarth Street
 createMarker (-37.7946, 144.97888, "VIC Fitzroy - Westgarth Street", "In the first space on the north side of Westgarth Street to the west of Brunswick Street. Outside Retro Cafe.", ficon, dcalc);
 
 // VIC Port Melbourne - Bay St (Town Hall)
 createMarker (-37.83569, 144.94492, "VIC Port Melbourne - Bay St(Town Hall)", "Outside the Port Melbourne Town Hall on Bay Street.", ficon, dcalc);
 
 // VIC Richmond - Burnley Street
 createMarker (-37.81872, 145.00857, "VIC Richmond - Burnley Street", "The first space on the East side of Burnley Street, one block north of Bridge road near the corner of Palmer Street. The car is outside 177 Burnley Street.", ficon, dcalc);
 
 // VIC Seddon - Greig St
 createMarker (-37.80676, 144.89112, "VIC Seddon - Greig St", "On the west side of Greig street, to the south of Charles street.", ficon, dcalc);
 
 // VIC Elwood - Broadway 
 createMarker (-37.87636, 144.98397, "VIC Elwood - Broadway", "The car is located on the Eastern side of Broadway, in the first bay to the south of the junction with Milton and Mitford streets. Next to F.L. Dawkins Reserve.", ficon, dcalc);
 
 // VIC Northcote - Westbourne Grove (Town Hall)
 createMarker (-37.7744, 144.99764, "VIC Northcote - Westbourne Grove (Town Hall)", "First space on the southern side of Westbourne Grove to the west of High Street. Directly outside the Northcote Town Hall.", ficon, dcalc);
  
 // VIC Northcote - Westgarth Street
 createMarker (-37.7812, 144.99771, "VIC Northcote - Westgarth Street", "This park is located on the South side of Westgarth Street, to the east of High Street. It is the first park to the east of the bus stop, and about 100m from the Westgarth train station.", ficon, dcalc);

 // VIC CBD - 380 Lonsdale St (Level 1 of Cobb & Co)
 createMarker (-37.812388, 144.961447, "VIC CBD - 380 Lonsdale St", "This park is located on level 1, at the far end of the complex by the wire cyclone fencing. This is a SECURE Parking carpark called Cobb & Co.", ficon, dcalc);

 // VIC Elwood - Normandy Rd (at corner near Glenhuntly Rd - opposite 7-11)
 createMarker (-37.88236487648853, 144.9819266796112, "VIC Elwood - Normandy Rd", "This park is located on Normandy Rd at the interection with Glenhuntly Rd - opposite the 7-11.", ficon, dcalc);

 // VIC St Kilda/Windsor - Chapel St, opposite Cintra Avenue (approx 100 metres South from The Astor Theatre) 
 createMarker (-37.85898530288576, 144.99205738306046, "VIC St Kilda/Windsor - Chapel St", "This park is located on Chapel St, opposite Cintra Avenue (approx 100 metres South from The Astor Theatre).", ficon, dcalc);

 // VIC CBD 172 Fliders St (Secure Parking - Level 2), opposite ACMI at Federation Squre
 createMarker (-37.816871, 144.968718, "CBD 172 Fliders St (Secure Parking - Level 2)", "CBD 172 Fliders St (Secure Parking - Level 2)",  ficon, dcalc);

 // VIC Richmond - Church St, near intersection with Swan St 
 createMarker (-37.82553551427508, 144.99790996313095, "Church St, near intersection with Swan St", "Church St, near intersection with Swan St", ficon, dcalc);

 // VIC Fitzroy North - York St, near corner Rae St 
 createMarker (-37.79196669724936, 144.97831642627716, "York St, near corner Rae St", "York St, near corner Rae St",ficon, dcalc);
 
  // VIC Flemington - Racecourse Road, near Newmarket Station
 createMarker (-37.78805170827496, 144.92887794971466, "Racecourse Road, near Newmarket Station", "Racecourse Road, near Newmarket Station",ficon, dcalc);
 
  // VIC Moonee Ponds - Margaret Street, outside Moonee Ponds Station
 createMarker (-37.76596321567073, 144.9194821715355, "Margaret Street, outside Moonee Ponds Station", "Margaret Street, outside Moonee Ponds Station",ficon, dcalc);
 }