Select to view content in your preferred language

My Government Services Directions Problem

2205
2
08-14-2013 04:25 AM
davidwray
Emerging Contributor
I am configuring the My Government Services 10.2 Application and I have found a problem when requesting Directions in the application.  The directions functionality works great if I search by Address and then perform the Directions function, but when I use the Locate button for my location then perform the Directions function the Starting Point is at the last Address Search Location.  For example, in my app I search on 5204 Bernard Dr the app will zoom to the location and return the services near that address location and provide Directions correctly, but if I click on the Locate button after performing the Address Search it will return the services near my location, but when I request Directions the App starts at the 5204 Bernard Location.  Please note: the Directions are correct except for the starting location.  Has anyone else experienced the same problem?

Thanks in advance for your help,
David Wray
0 Kudos
2 Replies
MikeTschudi
Esri Alum
Hi David,

Would you please check my reproduction steps below? It sounds as if there's a path thru the app where the Locate result fails to be written as the current location, but I'm not able to duplicate the problem yet.


  1. Search by address (used "1380 Aurora Ave Naperville" (I'm testing with our try-it's Naperville data))

  2. Got directions to the North Maintenance Facility (about 1.37 miles away)

  3. Jumped to my current location (set inside Centennial Park in Naperville using browser's emulator)

  4. Got directions to North Maintenance Facility (now showing about 0.24 miles away)


I'm using the latest version of the app that we have in GitHub. I also tried using the default address for the initial search. I don't see changes in the app since the 10.2 download was created that would have changed the behavior, and the app doesn't know about the browser's location emulator (Manual Geolocation 1.0.1 in Chrome 28)--it simply uses the usual navigator.geolocation.getCurrentPosition() call.

Is this happening on a desktop and/or mobile? If a desktop, are there any error/warning messages in the debugging console other than the usual cross-domain ping that reports as an error ("XMLHttpRequest cannot load...") and, for Chrome, warnings about files transferred as "MIME type text/plain"?

Regards,
Mike
0 Kudos
davidwray
Emerging Contributor
Hi Mike,

I am using the latest version from GITHUB.  I can reproduce the problem on the desktop (Firefox 22.0 and Google Chrome Version 28.0.1500.95 m) and mobile (Safari 6.1.4).  No error messages in the debugging console.  the steps to produce the error are the following:

1) search by address "5204 Bernard Dr"

2) get directions to cox communications recycling facility
RESULTS:
1.  Start at 5204 BERNARD DR
2.  Go east on Penn Forest Blvd toward Bernard Dr (0.12 miles)
3.  Turn left on Starkey Rd (0.4 miles)
4.  Turn left on Fallowater Ln (0.12 miles)
5.  Finish at COX COMMUNICATIONS, on the right

3) use GPS locator to jump to current location

4) get direction to cox communications recycling facility from current location on Campbell Ave.
RESULTS:
Directions to COX COMMUNICATIONS
Total Distance: 7.6 mile(s) Duration: 14 minute(s)
1.  Start at 5204 BERNARD DR
2.  Go south on N College Ave toward US-11/US-460 (0.24 miles)
3.  Turn left on Roanoke Blvd (0.57 miles)
4.  Turn right at US-11-ALT to stay on Roanoke Blvd (Boulevard Roanoke) (0.71 miles)
5.  Turn right on VA-419 (Electric Rd) (5.76 miles)
6.  Turn left on Bernard Dr SW (0.04 miles)
7.  Turn right on Fallowater Ln (0.27 miles)
8.  Finish at COX COMMUNICATIONS, on the left

Note the Start location:  it is wrong.

I have made my gov test app available to the public so you can take a look.

http://picolsvr.roanokecountyva.gov/mygov/

I agree with you that the locate results fails to be written as the current location.  Also, if I click my mouse on a location on the map my directions to the cox communications recycling facility are the following:
RESULTS:
Directions to COX COMMUNICATIONS
Total Distance: 9.47 mile(s) Duration: 19 minute(s)
1.  Start at
2.  Go northwest on VA-618 (Rutrough Rd) toward VA-658 (0.53 miles)
3.  Turn right at VA-658 to stay on VA-618 (Highland Rd) (0.14 miles)
4.  Continue on Highland Rd (1.75 miles)
5.  Turn left on Riverdale Rd SE (0.77 miles)
6.  Turn right on Bennington St SE (0.29 miles)
7.  Continue on 13th St SE (0.67 miles)
8.  Turn left on VA-24 (Jamison Ave SE) (0.93 miles)
9.  Turn left (0.01 miles)
10.  Take ramp and go southwest on US-220 (3.34 miles)
11.  Take ramp on the right to VA-419 N/US-220-Br toward Franklin Rd/Salem (0.15 miles)
12.  At fork keep right on VA-419 N (0.04 miles)
13.  Bear right on VA-419 (Electric Rd) (0.43 miles)
14.  Turn right on Ogden Rd (0.13 miles)
15.  Turn left on Starkey Rd (0.18 miles)
16.  Turn right on Fallowater Ln (0.12 miles)
17.  Finish at COX COMMUNICATIONS, on the right

Note the Start Location is BLANK.

Please let me know if you are able to duplicate the problem.

Regards,
David
0 Kudos