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 > > All I need is a way to acquire either KML or coordinates data for the > path between two points. These points can be addresses or coordinates. > From there, I can build up a KML file to be imported into either > Google Earth or a My Maps. > > I'm working in PHP. However, I think that is largely irrelevant. For > me, the missing link is what call to make to what Google API to get > the required data in return. > > If this is not the correct forum for this request, again I apologize. > Please direct me to the correct forum. > > Thank you. -- 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.
