AnsweredAssumed Answered

Web Viewer Set Up, Google Maps (UK) Using 2 Postcode Fields to Show Directions. Is it possible?

Question asked by disabled_dconnect on Jan 6, 2014
Latest reply on Nov 25, 2014 by hllp

Title

Web Viewer Set Up, Google Maps (UK) Using 2 Postcode Fields to Show Directions. Is it possible?

Post

     Hi,

     I am using FM Pro 12.

     I have Web Viewer showing location using a postcode field:

     "http://local.google.co.uk/maps?" & "q=" & /*Address=*/ "" & "," & /*City=*/ "" & "," & /*Postal Code=*/ main table::POSTCODE & "," & /*Country=*/ ""
      

     What I want to do is for the viewer to load directions between two postcode fields (for example, E151NG and OX14DF) not just load the location of one postcode field.

     An example url from Google Maps doing this is: https://maps.google.com/maps?saddr=E151NG&daddr=OX14DF&hl=en&ll=51.638476,-0.627594&spn=0.60513,1.448822&sll=51.298826,-0.743318&sspn=0.609651,1.448822&geocode=FYl2EgMdegcAACmbmDeJiafYRzFyyWe_MU9i7Q%3BFYysFQMd3tTs_yk_sNi4r8Z2SDFN0qYZyqU3Kg&mra=ls&t=m&z=10
      

     My guess would be to add main table::POSTCODE and main table::POSTCODE2 where E151NG and OX14DF are this url and add it as Custom Web Address. But I'm not sure how to do it.

     How do I do it?

     Thanks,

     C.

Outcomes