close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Goolge pro maps is not showing up?

Thread began 10/15/2012 8:15 am by Noa2086 | Last modified 10/17/2012 1:19 pm by Jason Byrnes | 3122 views | 13 replies |

Noa2086

Goolge pro maps is not showing up?

Hi jason,

my google pro map is not showing up.

what could be the problem? i have an api key.
i would like to set up 4 addresses:

1. address: address 1 (address of the company)
2. address: starting address (user input)
3. address: destination (user input)
4. address: address 1 (back to the company)

insert the record in recordset "Route" and get it from there.

how can i extract the time to calculate the price per hour?

why is my session "ServiceID" not working?

<?php
if(isset($_POST["Route_submit"])) {
header("Location: index.php?ID=".((isset($_SESSION['ServiceID']))?$_SESSION['ServiceID']:"")."&Route=".((isset($_SESSION['RouteID']))?$_SESSION['RouteID']:"")."&tab=2#TabbedPanels");
}
?>



thx for your help!

Sign in to reply to this post

Jason ByrnesWebAssist

I dont see a map applied to this page you have linked to, there is no map added to this page.


  how can i extract the time to calculate the price per hour?  



I dont follow, extract the time from what?

I dont have enough info to tell why the session is not working, i would need a copy of the page to inspect the code.

Sign in to reply to this post

Noa2086

hi jason,

thx for your quick reply. here is the zip.

google maps directions has a time from point a to b. for example 6 hours and 30 minutes.
how can i work with this (i think) variable?

Attached Files
index.zip
Sign in to reply to this post

Jason ByrnesWebAssist

that is not supported in promaps, you need to hand code that to return the travel time:
using-google-maps-api-to-get-travel-time-data

Sign in to reply to this post

Noa2086

This post has been deleted.

Jason ByrnesWebAssist

there is no need to pass the session to the URL. Just reference the session variable directly rather then trying to pass it to the URL to use the URL variable, thats a lot of extra work that is not needed.


to show multiple addresses on the map, click the plus button to add the first address, click the plus button again to add the second address and so on, see the attached screen shot.

Sign in to reply to this post

Noa2086

This post has been deleted.

Jason ByrnesWebAssist

to refer to a session variable use code similar to this::

php:
<?php echo($_SESSION['sessionName']); ?>



you seam to be hand coding the map, we con not offer support for hand coding the map.

Sign in to reply to this post

Noa2086

ok thx. just for the record i summarize:

1) with promaps it is not possible to have the direction function with more than two points. thx for the input with stackoverflow.

2) i haven't understand the session answer yet.

i start the session with this code:

<?php
if (!session_id()) session_start();
if("" == "") {
$_SESSION["ServiceID"] = "".$_GET['ID'] ."";
}
?>



i put the id with a session in the url with this code:

<?php
if(isset($_POST["Route_submit"])) {
header("Location: index.php?ID=".((isset($_SESSION['ServiceID']))?$_SESSION['ServiceID']:"")."&Route=".((isset($_SESSION['RouteID']))?$_SESSION['RouteID']:"")."&tab=2");
}
?>



where should i place your code?

Sign in to reply to this post

Jason ByrnesWebAssist

1) Yes it is, you have to select which point is the Destination though.

2) passing the session through the URL Variable like this does not make sense.

the whole point of using session variables is that once they are set they are available to all of the pages in your site. you don't need to pass the session using the URL.

instead you can reference the session on the index.php page just be using the code i gave.

one point:

this code:
if("" == "") {
$_SESSION["ServiceID"] = "".$_GET['ID'] ."";
}

will set the session on page load, regardless of whether the ID url variable has a value or not.

you may want to change the trigger for the set session value code to use the ID url variable.

Sign in to reply to this post
loading

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...