View Single Post
  #9   Spotlight this post!  
Unread 06-07-2012, 11:53
artdutra04's Avatar
artdutra04 artdutra04 is offline
VEX Robotics Engineer
AKA: Arthur Dutra IV; NERD #18
FRC #0148 (Robowranglers)
Team Role: Engineer
 
Join Date: Mar 2005
Rookie Year: 2002
Location: Greenville, TX
Posts: 3,078
artdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond repute
Re: The FRC Teams of 2012 (Google Maps)

Quote:
Originally Posted by John Sabath View Post
Yeah, there wasn't much I could do about locations that have multiple teams associated with them.
Was this generated manually or is it database driven?

If the latter, I assume the code is currently displaying the markers on the geographical center of the town/city/area. When displaying the data, have the code check if any other teams are from that same city; if so, add a small offset (a few hundred meters) to the display coordinates.

You could also create a geometric function on where to offset the team markers based upon the number of teams that need to be offset, almost like where the dots are on a pair of dice. If pursuing this option, be sure to leave the function open ended (have it automatically continue creating points), as there are some huge cities (both in population and geographic area) that have a large number of teams.
__________________
Art Dutra IV
Robotics Engineer, VEX Robotics, Inc., a subsidiary of Innovation First International (IFI)
Robowranglers Team 148 | GUS Robotics Team 228 (Alumni) | Rho Beta Epsilon (Alumni) | @arthurdutra

世上无难事,只怕有心人.
Reply With Quote