How can we troubleshoot the driving directions?

2 views
Skip to first unread message

mapicurious.com

unread,
Feb 26, 2008, 10:57:24 PM2/26/08
to WHERE GPS Developers
I keep getting an Oops.

This is my form:
<form id="dirsForm" action="http://widget.ulocate.com/jin/
getdirection.jin" method="GET">
<input type="hidden" id="olat" value=""/>
<input type="hidden" id="olng" value=""/>
<input type="hidden" id="dlat" value=""/>
<input type="hidden" id="dlng" value=""/>
<input type="hidden" id="width" value=""/>
<input type="hidden" id="height" value=""/>
<input type="hidden" id="back" value="1"/>
</form>

I "should" be submitting O&D data to the form via the JS routine, but
I've got no way to tell.

Can someone verify what my app is posting back to the
getdirection.jin?

Thanks,

Brad

wue

unread,
Feb 27, 2008, 12:55:29 PM2/27/08
to WHERE GPS Developers
Brad,

we don't see anything wrong with your code and /getdirection.jin is
working fine. Are you still having this problem?
Maybe check that the lat/lng you pass are valid and not in the middle
of nowhere.

Cheers,
Markus

mapicurious.com

unread,
Feb 27, 2008, 2:56:03 PM2/27/08
to WHERE GPS Developers
I'll do that.

Another related question:

1. load(pos_lat); and load(pos_lng); - Do they return decimal lat and
lng values?

Thanks,

Brad

Gil Cunningham

unread,
Feb 27, 2008, 3:02:24 PM2/27/08
to WHERE GPS Developers
Brad-
First, should be ...

var lat = load("pos_lat");
var lng = load("pos_lng");

Those calls both return strings, not floating point (decimal) values.
> > Markus- Hide quoted text -
>
> - Show quoted text -

mapicurious.com

unread,
Feb 28, 2008, 10:04:20 PM2/28/08
to WHERE GPS Developers
Is that something we need to convert, or is there a better function to
return decimal values?
> > - Show quoted text -- Hide quoted text -

Gil Cunningham

unread,
Feb 29, 2008, 9:57:57 AM2/29/08
to WHERE GPS Developers
You will need to convert those. Internally, we do it on the server
side as the scripting can be a bit tricky. In the next release we
will have a parseFloat(), which returns a float, similiar to
parseInt() today.
Reply all
Reply to author
Forward
0 new messages