Hi Carl. I was looking for the same thing in Google map. I'm working on researches about allocating ambulance sites so that it satisfy the requirement of 3.5 minutes, 1.4 kilometers, limit to reach the incident location from station to save lives. The idea that you propose is the same as what I'm working here. I call this boundary as a convex service area. The same idea can be applied to package delivering, optimal route design, airborne disease diffusing model… This can be done by perform several times of shortest path from center point and spread out to different directions. An approximate convex boundary will come out if the search path is dense enough. I hope some one can provide a simple function so that we can call it by provide the center and the duration distance. Best wish.
On 1月3日, 上午5時14分, carl palsson <[email protected]> wrote: > Hi! > > I have this idea of comparing the duration of a trip with other and let a > functions display them, shortest to longets? > > How could i do that? I use this to draw and calculate the distance, but not > the duration. This is only done for one marker, User location is set as > start, and the user specifies the end. So basicly, > > Map loads, sets start location as by geocoding user location, then fins all > markers that are 11,5 kilometers from that point. > User sets end location. Now we have start end, and multiple waypoints. But > trip is always > > start - one of the waypoints - end > > Therefore i need to calculate the trips duration from. > > start - waypoint 1 - end > start - waypoint 2 - end > start - waypoint 3 - end > and so on.. > > then with the duration sort from shortest to longest. > > Any1 have even a clue or had the similiar problem? > > would love to hear your ideas. > > I know duration is calculated after everything is done, so i need to do that > somehow?! > > Cheers > > Carl -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" 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-js-api-v3?hl=en.
