spamming markers on roads help

132 views
Skip to first unread message

fireofhellx

unread,
Nov 19, 2010, 1:33:43 PM11/19/10
to google-map...@googlegroups.com
im currently working on a project for uni using google maps
i want to spam markers all over the roads with a set distance between each one, also the markers need to refresh when the map recenters (this is for a mobile device and im tracking the users position) ive been looking online and ive not found anything like this so any suggestions and help would be appreciated 

fireofhellx

unread,
Nov 19, 2010, 1:40:44 PM11/19/10
to google-map...@googlegroups.com
oh this might help im basically trying to make a game so the spammed markers will become collectables i dont know if this help im still relatively new to using google maps
(sorry if the solution to this is really basic and this question is just a wast of time)

geoco...@gmail.com

unread,
Nov 19, 2010, 2:00:59 PM11/19/10
to Google Maps JavaScript API v3

fireofhellx

unread,
Nov 20, 2010, 10:05:02 AM11/20/10
to Google Maps JavaScript API v3
something alone those lines thanks thats a big help

fireofhellx

unread,
Dec 1, 2010, 7:48:14 AM12/1/10
to google-map...@googlegroups.com
ok so the link from Larry was very helpful however i need to place markers on the roads around a user no matter where they are

so currently im using watchposition to get the users location what i then need to happen is to some how get all the properties of the roads around the user (ie length of roads boundaries or a poly line for the roads) so markers can then be generated  and placed on all the roads visible on screen i hope this makes sense.

geoco...@gmail.com

unread,
Dec 1, 2010, 8:16:27 AM12/1/10
to Google Maps JavaScript API v3
It makes sense, but as the Directions service is subject to a quota
and a rate limit (to prevent abuse), you may not be able to do it
dynamically with the services available to you from google.

You may need to get road data for your area of interest (accurate data
will cost money) and process it locally on your server.

-- Larry

geoco...@gmail.com

unread,
Dec 1, 2010, 8:26:54 AM12/1/10
to Google Maps JavaScript API v3
On Dec 1, 5:16 am, "geocode...@gmail.com" <geocode...@gmail.com>
wrote:
This example (using the v2 API) seems to be similar to what you are
looking for.

http://maps.forum.nu/gm_driving_radius.html

-- Larry

>
>   -- Larry

fireofhellx

unread,
Dec 2, 2010, 7:17:56 AM12/2/10
to google-map...@googlegroups.com
that is just what ive been looking for thanks a lot. you have saved me a lot of frustration  
Reply all
Reply to author
Forward
0 new messages