Marcelo, Not sure if you received my previous response (I'm new to google groups).. the implementation you created was just about perfect.. The only difference being that I would query for States instead of counties, and I really don't even need to render a map (though it is a nice touch). The elevation tracking for the trip is awesome by the way.
Is it absolutely necessary to have a Spatial Database to produce this kind of calculation? Is this something that is relative easy to integrate with a php based site on a linux server running a mySQL database? I've since discovered PostGIS but am not familiar with it and am not sure how I would shape my ajax request to produce the desired results (the breakdown of mileage by state). Appreciate the help! PS. I will post code once I get something working.. but I have to say I'm looking into the MapQuest API as a possible alternative On Nov 17, 3:14 pm, Marcelo <[email protected]> wrote: > On Nov 17, 9:52 am, Peter demaria <[email protected]> > wrote: > > > *Dear Google Maps Javascript API v3 Group,* > > I'm searching for a way to break the output of Googles Directions API for > > directions based on an Origin, Waypoints, and Destination into Mileage by > > US State. > > Here's an example that shows you the mileage by > county:http://maps.forum.nu/v3/gm_directions.html > > but the "magic" on the server side requires a database with spatial > capabilities. > Note that, as this is hosted on a shared server, the counties might > take a couple of seconds to appear on the right hand panel. > > -- > Marcelo -http://maps.forum.nu > -- > > > > > > > > > > > I've done a lot of googling and looked through the documentation but I'm > > not seeing anything that looks like some kind of explicit object that I > > could use to calculate the mileage in a per-State way. Any thoughts? > > > You would think that a Stateline would constitute some type of object, at > > least as a Point of Interest or a flag that would be available as a > > breakpoint. > > > I've seen the manual approach, whereby you would manually place markers and > > then look at the segments, but I don't see this being a workable solution > > for a larger scale implementation, and I'd love to think there were a more > > dynamic approach. > > > Any thoughts? -- 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.
