Topic: Search for a route using Bolt

An example of how to find and draw a route in Online Maps using Bolt.

Online Maps Bolt Integration Kit:
http://forum.infinity-code.com/viewtopic.php?pid=3535

Kind Regards,
Infinity Code Team.

Boost your productivity a lot and immediately using Ultimate Editor Enhancer. Trial and non-commerce versions available.

Re: Search for a route using Bolt

very good, I am downloading the bolt integration kit tonight....

Re: Search for a route using Bolt

This works great, thank you!
How would I get the steps of the route? Like in your find directions api example?  I found various step units, however none of them would accept an input from get result or route.

My ultimate plan is to display each step of the route to the user like turn by turn directions, as the user approaches a turn, the next relevant step is displayed.

Re: Search for a route using Bolt

Something like that:
https://thumb.ibb.co/dodf4x/img1.png

In Tools / Bolt / Unit Options Wizard / Types, add the following types:
OnlineMapsGoogleDirectionsResult.Leg
OnlineMapsGoogleDirectionsResult.Step

Kind Regards,
Infinity Code Team.

Boost your productivity a lot and immediately using Ultimate Editor Enhancer. Trial and non-commerce versions available.

Re: Search for a route using Bolt

thats it!
I had added the 2 types correctly in the unit options wizard, but was using different step and leg units. Switching to programmer readable from human readable in the setup wizard helped me identify the correct units as yours were labeled differently then mine.

One last question (maybe)
I am attempting to set the "mode" to bicycle, I added the only mode type I could find, which created a mode unit, but I cant set it correctly. I found a directions.find unit that accepts params, but could not hook them up. something like this:

OnlineMapsGoogleDirections query = OnlineMapsGoogleDirections.Find(
            new OnlineMapsGoogleDirections.Params(startPos, finalPos)
            {
                mode = OnlineMapsGoogleDirections.Mode.walking
            });
       
I will provide screenshots of my Bolt graphs tonight so other users can see how we've created this logic.

Re: Search for a route using Bolt

Something like that:
https://thumb.ibb.co/iJuNMc/img1.png

In Tools / Bolt / Unit Options Wizard / Types, add the following types:
OnlineMapsGoogleDirections.Params
OnlineMapsGoogleDirections.Mode

Kind Regards,
Infinity Code Team.

Boost your productivity a lot and immediately using Ultimate Editor Enhancer. Trial and non-commerce versions available.

7 (edited by theboosted1 2018-04-12 01:52:24)

Re: Search for a route using Bolt

yep! I worked it out right before you posted.

Post's attachments

Attachment icon maps google mode.JPG 65.54 kb, 187 downloads since 2018-04-12 

Re: Search for a route using Bolt

Here is a few more basic graphs...

Post's attachments

Attachment icon map.JPG 85.39 kb, 173 downloads since 2018-04-12 

Re: Search for a route using Bolt

checking if user has gps location enabled

Post's attachments

Attachment icon gps check.JPG 75.24 kb, 186 downloads since 2018-04-12 

Re: Search for a route using Bolt

all graphs so far

Post's attachments

Attachment icon overview.JPG 112.68 kb, 165 downloads since 2018-04-12 

Re: Search for a route using Bolt

Rotating camera to set 2D or 3D view

Post's attachments

Attachment icon view.JPG 97.35 kb, 164 downloads since 2018-04-12