Directions Directive #578
Comments
I'm curious what one would do with static directions like this? Wouldn't it be better to use the embed API and just get a snapshot? I'd think this might be better handled by getting a reference to the map and just making the calls externally, but maybe not. What would you do with a direction as shown above if there were multiple routes returned? Easy enough to handle in your own code, but then in this you would have to do some workaround like a callback or something that defaults to first in list or something. These are just my first thoughts, so don't think we wouldn't potentially take this as a feature, but I just thought I'd throw those out there. @nmccready You have any thoughts? This would be another service call, similar to the geocoding discussion we had. |
I'd be interested in this feature as well - otherwise I'm looking at having to impletement a inappbrowser opening up maps.google.com with directions. |
@nsquimby I pose the same questions to you. I'm trying to flesh out what this feature would accomplish and how. |
I'm pretty new to Angular, so it was just a formatting idea. Maybe a
|
This might even be a non issue if the best way to add directions to a map
|
A service could be an interesting idea, there is the problem of getting to the map that you're targeting (as there could be multiple maps on a single page), but once that was overcome, some sort of mapManager or something, it could be useful. Of course at that point, it doesn't seem much different from just using the API that google provides, and nggm requires. |
Agree with @tomhalley89: directions displayed on the map would be nice. I'm On Wed, Jul 23, 2014 at 5:37 PM, Myles Bostwick notifications@github.com
|
@nsquimby Utilizing the google maps api and getting a reference to the map object created by nggm, would give you the directions on the map. The proposed template format would require ahead of time knowledge of the directions and of the route to choose (if there are multiple routes). In essence making this a more difficult solution, at least to my mind. But since both of you are asking for it, I must be missing something, so please elaborate more on how this feature would differ from using the google provided API and what it would simplify. |
It would be good to have a consistent service as part of the library that
|
And not only that but the static calls could select a route depending on
|
@tomhalley89 the biggest concern I have about providing a service such as this is that it will have to expose all the same functionality as the google API itself. I'm not saying it's the wrong thing to do, but it increases the scope of this library significantly. So the real question is what value is the abstraction adding? Pros:
Cons:
I'm trying to fill out the Pros list with more and am not seeing it. That's why I keep asking for more. So if you can fill it out a bit more, that would be awesome. |
@cthrax I'm afraid I don't agree with the cons you've put forward:
Making a service that wraps the google API and simplifies common tasks makes this a non-issue. The whole point of this addition is to simplify the Google API for the developer.
Assuming it's implemented poorly. With the proper level of abstraction this wouldn't be a problem.
Well yes, but then you could say that about any library that wraps around a third party API. Again, if it's poorly implemented then yes it will cause issues. With the proper level of abstraction, the Directions part could break on an API change without any knock on effect to the google-maps directive. I'm assuming Google is pretty good about informing developers before they make API changes as well so as long as the fixes are made in time it should be fine. In terms of pros:
|
Agreed with @tomhalley89 on all points, but also, providing directions would create a marked increase in this project's scope--It's not my call to say what @cthrax should or shouldn't do, but I would find use in this functionality. As mentioned, I'm working on an Ionic mobile app, so opening directions in the app is the target. In the mean time, I'm going to give |
@tomhalley89 @nsquimby Alright guys, I talked with the other collaborators on this project and the scope increase of adding this would be more than the support we're getting to maintain this project at this point. However, this feature is ripe for someone to write a plugin to get this functionality. You both seem to have a better grasp of the utility of this feature, so if you want to create a plugin, we'd be happy to provide any direction (haha, pun intended), on making that happen. |
All I have talked over this with @cthrax a ton; and we can possibly get to this on 2.0.1-2.0.x . But right now there are too many things to fix (129+ current issues) with not enough help with only @cthrax , myself, and @rickhuizinga . So we need to come up with some basic requirements so that someone can implement this and be PR'ed into the library. Also like @cthrax said this is ripe for an extension. However we need to come up with a organization for github or merge with an existing org. |
@cthrax @nmccready Excellent, thanks for the update! I can scope out some basic requirements and post them here for people to review. Once those have been finalized it'll be easier to figure out if we need a separate org or if it can just be PR'd. I'll draft some requirements tonight. |
@tomhalley89 any update? |
any update on this? |
Some other people need to step in. I don't have time for this. Closing unless someone else wants to implement. |
I'll keep it brief: It would be great if your library allowed implementation of the Directions API!
For example:
Or even:
I'd quite like to work on this as this is a feature I need on one of my projects.
The text was updated successfully, but these errors were encountered: