On Jan 24, 6:05 pm, Danny <[email protected]> wrote: > [email protected] wrote: > > On Jan 24, 4:12 pm, Danny <[email protected]> wrote: > > >> I suspect this is not the correct place to be asking this. However, I > >> just started messing with "My Maps" and the API yesterday and I'm > >> still a bit confused as to what is what. > > >> My goal is to create a series of "My Maps" showing highlighted block > >> ranges. Thus far, I have done a couple by hand. Example: > > >>http://maps.google.com/maps/ms?ie=UTF8&hl=en&msa=0&msid=2152322357122... > > >> However, it occurred to me that the process could be largely automated > >> by passing the begin and end block range addresses to Google geocoder > >> and using the resulting coordinates to generate a series of line > >> markers, write this to a KML file and then be import it into a My Map. > > >> So far, I've hacked out some rough PHP code that will retrieve > >> coordinates from the Google geocoder using supplied addresses as well > >> as some PHP that will generate appropriate KML for lines between two > >> coordinates. > > >> The brick wall I'm hitting is that I'm now realizing that to have a > >> line follow the streets, the coordinates for each curve/turn have to > >> be acquired and separate line markers written to the KML file. > > >> The Google Directions API does this, except that it also spits out way > >> more data that I need; waypoints, turn directions, etc... > > > But that is what you need. The directions from one end of the block > > to the other and the associated polyline. You can ignore the other > > information (waypoints, turn directions, etc...), but you do need to > > display it on a map to comply with the terms of use. > > > -- Larry > > I had considered using the Directions API and just extracting out the > polyline coordinates. Though, for me, right now, this is sort of a quick > and dirty hack. It took me about 30 or 40 minutes to do that map by > hand, drawing the lines using the My Maps interface. I have about 14 of > them I'd like to do with roughly the same number of block ranges to > highlight. If I could hack out some code to automate the process down, > awesome. > > There's a remote chance the company I work for may see this and want me > to do more. (These 14 are for my own use) In which case, I'd very much > want to automate it. However, what you say about the terms of use both > concerns and confuses me. You say that I can ignore the additional > information that I don't need from the API's response. Then you say it > must displayed on the resulting map else it's a violation of the terms.
Sorry I wasn't clear. If you display the resulting polyline on a map (which you seem to be doing), there is no issue with the terms (caveat - IANAL, so review the terms of use for yourself). I was just trying to say if you don't need the turn by turn directions, etc; don't display them. The only required display text it the warning text if you are using walking directions, and I haven't used the Directions API (I use the service in the API) to know how that works out. -- Larry > > I certainly want to make sure my methods are not in any violation in the > event I am asked to replicate this method for others to use. > > -Danny- Hide quoted text - > > - Show quoted text - -- You received this message because you are subscribed to the Google Groups "Google Maps API V2" 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.
