[Phpwm] Google Maps API - Plotting a Route

Richard Cunningham rich at richardcunningham.co.uk
Tue Feb 9 12:07:01 UTC 2010


If you don't need to index the individual points you could just dump all 
the points in one field with json_encode() or serialize()

Oliver Mortimer wrote:
> I'm trying to add multiple points to a map, with polylines joining them together, and then save the points to MySQL to use later.
>
> I don't know a lot about JavaScript, so finding it a bit difficult.
>
> At the moment, I can save 1 point to the database, and I can pull all points that have been saved and show them on a map.  I can also drop markers onto a map with polylines inbetween them, but can't get my head around saving multiple markers to the database. 
>
>
> -----Original Message-----
> From: phpwm-bounces at mailman.lug.org.uk [mailto:phpwm-bounces at mailman.lug.org.uk] On Behalf Of David Goodwin
> Sent: 09 February 2010 11:43
> To: West Midlands PHP User Group
> Subject: Re: [Phpwm] Google Maps API - Plotting a Route
>
> Surely you'd only want to save the end points?
>
> In which case why save to mysql?
>
> Perhaps I'm missing something.
>
>
>   
>> Does anyone know of any good examples on how to plot a route using  
>> the Google Maps API, then saving this data to MySQL for displaying  
>> later?
>>
>>
>>
>> Many thanks,
>>
>>
>>
>> Oli
>>     
>
> _______________________________________________
> Phpwm mailing list
> Website : http://www.phpwm.org
> Twitter : http://www.twitter.com/phpwm
> Facebook: http://www.facebook.com/group.php?gid=2361609907
>
> Post to list: Phpwm at mailman.lug.org.uk
> Archive etc : https://mailman.lug.org.uk/mailman/listinfo/phpwm
>
>
> Oliver Mortimer
> Web Developer & ICT Manager
>
>
> Spinning Clock Ltd | Unit 18 | Beeston Business Park | Technology Drive | Beeston | Nottingham | NG9 2ND
> tel: +44 (0) 115 9430777 | direct line: +44 (0) 115 9575320 | fax: +44 (0) 115 943 0888
> email: info at spinningclock.com | website: www.spinningclock.com
>
> Unless otherwise stated, any quotes, estimates or proposals attached to or contained within this email are subject to our standard terms and conditions.
>
> Spinning Clock is a Private Limited Company registered in England and Wales. Registered Company Number: 4540213.
> Registered Office: Unit 18, Beeston Business Park, Beeston NG9 2ND. VAT Registration Number: 806 1879 18.
>
>
> _______________________________________________
> Phpwm mailing list
> Website : http://www.phpwm.org
> Twitter : http://www.twitter.com/phpwm
> Facebook: http://www.facebook.com/group.php?gid=2361609907
>
> Post to list: Phpwm at mailman.lug.org.uk
> Archive etc : https://mailman.lug.org.uk/mailman/listinfo/phpwm
>
>   



More information about the Phpwm mailing list