biote



progressive design and web

we design effective communications solutions.
we develop websites and applications, including dynamic
content, e-commerce and hosting.
Read more about us or what we do.

Yes, we also blog. 

 

 

Archive for the ‘Google Maps’ Category

Driving directions with nearby points of interest

Wednesday, September 8th, 2010

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

Google Maps API v2 example by Marcelo

Implements a bunch of nice features – does get directions between two points (with optional waypoint). Shows line on map, distance and travel time.  Has 5 selectable points-of-interest categories; each selected will show up along route if they are within the given distance-from-line (“search radius”).

Also uses the js library parallel_lines.js to add shading at the radius distance all along the route, and uses a ‘loading…” overlay when the poi category is clicked.  Nice!

Distance from mouse to line

Wednesday, September 8th, 2010

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

Google maps API v2 example by Marcelo
Implements extendable polyline draw and then shows distance from current mouse position to each segment of line.  If mouse gets closer than 15? miles?  an infowindow pops up with ‘proximity alert’.

Bill Chadwick provides a similar example on his map demos page: Look for the one headed “DISTANCE POINT TO POLYLINE OR POLYGON”. His source code is here

Bill also provides a link to a further example, which snaps a marker to the nearest point on a polyline set.

All of these are api v2 implementations.