Page 1 of 3

Directions plugin (updated still BETA)

Posted: Mon May 06, 2013 7:11 pm
by kalmangabriel
Based on Google Maps Directions service and it is available in my repository @ http://ggs.scorpiontrack.ro(Contact me for access)
Requires Google Maps v3 (obviously)
As always suggestions and feedback are welcome!
I mean it!

1. Auto zoom to track added
2. Draggable waypoints added
3. Language file added (Directions.English.lang)

Preview:
Image

Directions plugin updated.(02.02.2014)

You have the ability to save the displayed route.
The saved route can be used in Event rules.

At step 4 (Expressions), select "Http Expression" and enter

http://localhost/services/rm.ashx?ROUTE=<font color="red">test_route</font id="red">&DISTANCE=<font color="red">50</font id="red">&APP_ID=<font color="red">5</font id="red">

Where:
test_route = the saved route name
50 = allowed deviation in meters
5 = current application id

Optionally you can get the real distance from route in meters in alerts using the "Http_Route_Dist" variable.
Just click on Advanced under the Http Expression setup and check the Support notifiers checkbox.

Preview:
Image

Note:

Google Maps is needed only for saving the routes!
Tested with MySQL database only !!!!!!

<font color="red">Please note that my reply IS NOT from GpsGate!!!</font id="red">
------------------------------------------
<font size="1">Email: tech@scorpiontrack.ro Skype: gabrielkalman
Internet: It doesn't make you more stupid, it just makes your stupidity more accessible to others</font id="size1">

RE: Directions plugin (updated still BETA)

Posted: Mon May 06, 2013 9:37 pm
by vadr24
GREAT FEATURE!!!

vadr24

RE: Directions plugin (updated still BETA)

Posted: Tue May 07, 2013 12:02 am
by zero48
Gabriel... You Rock !!

RE: Directions plugin (updated still BETA)

Posted: Tue May 07, 2013 9:50 am
by Bolt
Excellent feature...... well done!!

RE: Directions plugin (updated still BETA)

Posted: Wed May 08, 2013 5:17 am
by piter197
This is great...!

Gabriel, please provide translation, thank you.

Best Regards,
piter197

RE: Directions plugin (updated still BETA)

Posted: Wed May 08, 2013 6:15 am
by limyo
Hi Gabriel,

This is great feature.
I suggest to have a field for input speed to calculate base on road condition.

Thanks
Regards

Yo Lim

RE: Directions plugin (updated still BETA)

Posted: Wed May 08, 2013 12:57 pm
by kalmangabriel
@piter197 i will, but not while the plugin is in BETA
@limyo
the duration is provided by Google Directions.
if you want my opinion, i don't think anyone in this world can calculate the accurate duration of a trip, at least not in my city/country (Romania, the only country in Europe without a highway, that means we are special..? :D)
still.. i can add a "Speed" field to get the duration based on that value.

Thanks

<font color="red">Please note that my reply IS NOT from GpsGate!!!</font id="red">
------------------------------------------
<font size="1">Email: tech@scorpiontrack.ro Skype: gabrielkalman
Internet: It doesn't make you more stupid, it just makes your stupidity more accessible to others</font id="size1">

RE: Directions plugin (updated still BETA)

Posted: Tue Jul 09, 2013 11:59 am
by Bjorn_Andersson
Hi,
Rewrite directionsStart method line 241.
Change setIntervall to setTimeout.
The method is causing an uncontrolled recursion like call pattern if the directions never gets ready and crash the browser.
It is also a problem if the directions isn't ready after the first try since you will overwrite the setIntervall handler and it will never be canceled.

Note, setIntervall will repeat it self, setTimeout will only repeat once.

Regards,
GpsGate Support
Bjorn Andersson

RE: Directions plugin (updated still BETA)

Posted: Tue Jul 09, 2013 12:20 pm
by kalmangabriel
thx Bjorn, fixed and updated... i've noticed some time ago that is something wrong around that setInterval but never managed to figure out what exactly...

<font color="red">Please note that my reply IS NOT from GpsGate!!!</font id="red">
------------------------------------------
<font size="1">Email: tech@scorpiontrack.ro Skype: gabrielkalman
Internet: It doesn't make you more stupid, it just makes your stupidity more accessible to others</font id="size1">

RE: Directions plugin (updated still BETA)

Posted: Sun Jul 28, 2013 1:40 pm
by limyo
Hello Gabriel,

Nice features that you add Custom Speed, Custom duration, especially it work together with Proximity.

Thanks
Regards

Yo Lim

RE: Directions plugin (updated still BETA)

Posted: Mon Feb 03, 2014 10:22 am
by guytracker
Very nice. Well done.

Is the "total duration" based on current traffic conditions as calculated by Google directions, or is it a simple speed and distance calculation?

RE: Directions plugin (updated still BETA)

Posted: Mon Feb 03, 2014 10:27 am
by guytracker
I love the costs calculation. How about a new plugin that would make the same calculations based on a displayed track, so we can see what a trip cost.

RE: Directions plugin (updated still BETA)

Posted: Mon Feb 03, 2014 10:50 am
by kalmangabriel
Thanks..
"Total duration" based on Google Directions.
"Custom duration" based on "Custom speed".

<font color="red">Please note that my reply IS NOT from GpsGate!!!</font id="red">
------------------------------------------
<font size="1">Email: tech@scorpiontrack.ro Skype: gabrielkalman
Internet: It doesn't make you more stupid, it just makes your stupidity more accessible to others</font id="size1">

RE: Directions plugin (updated still BETA)

Posted: Mon Feb 03, 2014 6:00 pm
by qtech
you mean it's free?

RE: Directions plugin (updated still BETA)

Posted: Mon Feb 03, 2014 7:18 pm
by ssean
Dear,

Amazing. Very good.
But I'm having a little problem to retrieve saved routes.
They disappear. I have to save another return to the old.

Congratulations


Sean