Hi guys, It is me again. Pls click on the link below you will see what I am trying to do. If you click on measure distance and type in the address or location an info window pop up and tells you how far the route is from your new address. The link is just an example and I am trying to do the same thing. I know how to do the base map and bring in the route, also I can find address but my own address does not calculate distance and I want it to. thanks .
http://transmissionmap.albertaelectricityfuture.com/westernline/ On Apr 14, 9:41 am, kasa <[email protected]> wrote: > So Rossko what willhelp. I need to do this as soon as possible. I > check this site but it is not of muchhelp. > > http://www.bdcc.co.uk/Gmaps/BdccGmapBits.htm. I have added the > polyline. Now I want the user to put any address in the field and > thedistancebetween the address and the polyline will be calculated. > > Thanks for all yourhelp. > > On Apr 14, 9:16 am, Rossko <[email protected]> wrote: > > > > > > Hi Fernando, I am new at using Javascript or google map api. Do you > > > have any sample codes using getVertex(index) that can be ofhelp. Can > > > you explain more? > > > It's not going tohelp, really. If you want to know thedistance > > between some line and a point, working out thedistancebetween the > > point and the vertices of a segmented line isn't always going to give > > the answer. (Imagine a straight line section, which is quite likely > > on a powerline, with vertices 1km away from the test point on either > > side. The line may still pass directly overhead)- Hide quoted text - > > - Show quoted text - -- You received this message because you are subscribed to the Google Groups "Google Maps API" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-maps-api?hl=en.
