close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Not able to get driving directions to show.

Thread began 7/13/2011 7:56 pm by emy302298 | Last modified 9/26/2011 6:55 am by Nathan69474 | 2909 views | 5 replies |

emy302298

Not able to get driving directions to show.

I have followed the solution for driving directions.

Here is the page
0000.php

unable to get page to show directions.

Sign in to reply to this post

Jason ByrnesWebAssist

the google geocoder does not like your destination address:
1 East Wilshire Boulevard, Los Angeles, CA, 90017, USA


if I change that to :
700 East Wilshire Boulevard, Los Angeles, CA, 90017, USA


I can get the directions to return.

Sign in to reply to this post

emy302298

Thank You!

Jason,

That was it!

I usually forget to thank you after each time you solve my problems.

You do a great job!

Thank You,
Mike Moore

Sign in to reply to this post

Jason ByrnesWebAssist

you're welcome.

Sign in to reply to this post

Nathan69474

ditto ... no directions ?!?!?

have followed wizard to the letter .... but no directions ?!?!?

map locates to correct location

_map.php


please help

Thanks
nathan

page source code and wagmp_map_3.php file as follows ....

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<script type="text/javascript">
/*wagmp*/
<?php include("google_javascript/wagmp_map_3.php"); ?>
</script>
<script type="text/javascript" src="http://maps.google.com/maps?file=api&v=2&key=apikeynumberremovedfromcopyandpastesourcecode">/*wagmp*/</script>
</head>

<body>
<table width="650" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<div id="wagmp_map_3" style="width: 500px; height: 500px;"></div>
<div id="wagmp_directions_3"></div></td>
<td valign="top"><form id="address" name="address" method="post" action="">
Address<br />
<input type="text" name="address" id="address" />
<br />
city
<br />
<input type="text" name="city" id="city" />
<br />
state<br />
<input type="text" name="state" id="state" />
<br />
Post Code
<br />
<input type="text" name="zip" id="zip" />
<input name="country" type="hidden" id="country" value="United Kingdom" />
<br />
<input type="submit" name="button" id="button" value="Get Directions" />
</form></td>
</tr>
</table>
<script type="text/javascript" src="google_javascript/wagmp_maps.js">/*wagmp*/</script>
</body>
</html>

extract of wagmp_map_3.php form binding code as follows ....
full .php file converted to txt file has been uploaded

var fromAddress = {
enabled: true,
street: '<?php echo str_replace("'", "\'", "".((isset($_POST["address"]))?$_POST["address"]:"") .""); ?>',
city: '<?php echo str_replace("'", "\'", "".((isset($_POST["city"]))?$_POST["city"]:"") .""); ?>',
state: '<?php echo str_replace("'", "\'", "".((isset($_POST["state"]))?$_POST["state"]:"") .""); ?>',
zip: '<?php echo str_replace("'", "\'", "".((isset($_POST["zip"]))?$_POST["zip"]:"") .""); ?>',
country: '<?php echo str_replace("'", "\'", "".((isset($_POST["country"]))?$_POST["country"]:"") .""); ?>',
full: '<?php echo str_replace("'", "\'", "".((isset($_POST["address"]))?$_POST["address"]:"") .""); ?>, <?php echo str_replace("'", "\'", "".((isset($_POST["city"]))?$_POST["city"]:"") .""); ?>, <?php echo str_replace("'", "\'", "".((isset($_POST["state"]))?$_POST["state"]:"") .""); ?>, <?php echo str_replace("'", "\'", "".((isset($_POST["zip"]))?$_POST["zip"]:"") .""); ?>, <?php echo str_replace("'", "\'", "".((isset($_POST["country"]))?$_POST["country"]:"") .""); ?>'
};

server has a _promaps_cache file with the following written to it
<?xml version="1.0" encoding="UTF-8"?>
<geocode_data version="1.0"><geocode_entry ID="Lighwood Road Longton Stoke-on-Trent Staffordshire ST3 4JG United Kingdom"><address><![CDATA[Lighwood Road Longton, Stoke-on-Trent, Staffordshire, ST3 4JG , United Kingdom]]></address><geocode><![CDATA[(52.9824802, -2.1298375)]]></geocode></geocode_entry><geocode_entry ID="Lighwood Road Longton Stoke-on-Trent Staffordshire ST3 4JG UK"><address><![CDATA[Lighwood Road Longton, Stoke-on-Trent, Staffordshire, ST3 4JG , UK]]></address><geocode><![CDATA[(52.9824802, -2.1298375)]]></geocode></geocode_entry><geocode_entry ID="Lighwood Road Longton Stoke-on-Trent Staffordshire ST3 4JG UK"><address><![CDATA[Lighwood Road Longton, Stoke-on-Trent, Staffordshire, ST3 4JG , UK]]></address><geocode><![CDATA[(52.9824802, -2.1298375)]]></geocode></geocode_entry><geocode_entry ID="Lighwood Road Longton Stoke-on-Trent Staffordshire ST3 4JG UK"><address><![CDATA[Lighwood Road Longton, Stoke-on-Trent, Staffordshire, ST3 4JG , UK]]></address><geocode><![CDATA[(52.9824802, -2.1298375)]]></geocode></geocode_entry></geocode_data>

Attached Files
wagmp_map_3_php.txt
Sign in to reply to this post

Nathan69474

typo / spell check

there's a t in light ... Lightwood is spelt Lightwood ... not Lighwood !

moral of story spell check all address inputs !

thanks
nathan

didn't actually say .... directions work !

Sign in to reply to this post

Massimo

I have the same problem. not get direction. this is page uffici.php. why?

Sign in to reply to this post

Jason ByrnesWebAssist

it doesn't look you have properly bound the directions settings.

On the 5th step of the pro maps wizard, you need to click the lightning bolt next to the From Street, City, State, etc... and select the corresponding form element on your page.

Sign in to reply to this post

Massimo

my distraction error. Thanks

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...