How to autocreate waypoint in maps?

  • Jonas Silvermosse
    Asked on January 26, 2017 at 7:21 AM

    Hi!

    I've created a map with direction from geolocation which functions perfectly.

    I wish to add an unique type of waypoint, but however I try, nothing seems to work.

    What I wish for the program to do, is to have a data-table with info about locations coordinates, products available for purchase on the specific place and of course the price of the product that applies on that location. I then want the user to choose in a checkboxlist witch product his interested in ex: product 1 implicitly. Then he or she agree to show geolocation and wright where they want to go.

    What seems impossible is to have the script first to test is location on route +- 500m? if false do not include location in search. If location is on route +- 500m is true then include position in search. does the location on route +- 500m have the product selected available on location? if false exclude location and if true include location.Search for what you may ask? The answer is simple - price!

    I want it to find the lowest price of the product selected  among the locations included and select that specific location with lowest price in question. It should then create a marker for this location and set it as a waypoint in the direction service.

    How in belsebubs name can I make this happen?! I'm starting to bleed my eyes out.

    the link below shows my direction with geolocation map.

    Kind regards Jonas Silvermosse

     

  • Özlem JotForm Developer
    Replied on January 26, 2017 at 8:04 AM

    Hi,

    I'm not sure if it is possible in JotForm.

    You can use Geolocation Widget to get the location of the user and compare it with stable values (product location is the same in all cases) by conditions. 

    However, there are al lot of variables in your case according to my understanding but simply you can use Geolocation Widget  and conditions to make these kind of form. 

    Please have a look at the following guide:

    Smart-Forms-Using-Conditional-Logic 

    I think that you can compare two texts (location names) by conditions but you cannot measure the distance between these two locations. The problematic point is this. If your issue is not about this, please provide more details, step by step instruction about your issue. 

    If you need any other details, please feel free to let us know.

    Thank you.