Locus Map - forum

Support => Troubles & Questions => Topic started by: zsero on October 22, 2012, 21:22:42

Title: "My Maps" import brakes navigation
Post by: zsero on October 22, 2012, 21:22:42
I'd like to use Google Maps navigation with Locus. My problem is that it's not possible at the moment. The best idea I could come up with is to save a navigation to My Maps but when I import it in Locus, it only imports a straight line between start to end, not the actual navigation.

If the API is similar to the web interface, then the fix is to use the link on the left, not the right on this image. The right only contains endpoints, the left contains the actual track.
(http://http://i.imgur.com/IWAmd.png)
Title: Re: "My Maps" import brakes navigation
Post by: jusc on October 23, 2012, 08:40:31
We discussed it already a year ago, I think. Workaround is to export the kml file with Google Maps and import the kml file with Locus.
But you are right. It would be better if Locus could handle this directly. With Google you can plan your routes very fast.
Title: Re: "My Maps" import brakes navigation
Post by: Menion on October 23, 2012, 09:03:38
I'm sorry guys but some progress in this area is not possible

http://googlegeodevelopers.blogspot.cz/ ... ement.html (http://googlegeodevelopers.blogspot.cz/2010/11/maps-data-api-deprecation-announcement.html)

MyMaps should already end an year ago. People anyway use this so Google decide to keep service alive but without any improvements. Their current API is not working perfectly and what you want is not simply possible now. It's possible only with usage Google Directions API (so compute direction way between points), but their terms of use deny using in Locus (they need to display result only on Google maps)
Title: Re: "My Maps" import brakes navigation
Post by: zsero on October 23, 2012, 14:18:10
Oh, I see. So once Google ends the Maps API the My Maps will be removed.

For the Directions API, I have a suggestion. OK, don't risk an API key for Locus, but you can let us use a or own API key (for example from a text file). I mean if I decide to watch any map other than Google Maps with it, it's my fault, in the worst case they might revoke my key. I know this way it's a power-user option, but it wouldn't need to be enabled by default and there could be a howto in the forum how to get a API key and save it into a file.
Title: Re: "My Maps" import brakes navigation
Post by: Menion on October 23, 2012, 15:16:47
hehe, yes it's a cute idea, but it's not just about using own API key in Locus. Problem here is that I even allow to use any API key in feature that should not exists in Locus
Title: Re: "My Maps" import brakes navigation
Post by: zsero on October 23, 2012, 15:20:02
Oh, so we should write a plugin for that... Problem solved :-) You have no control over what happens inside your plugins (or you can say so).