GeoStream: Failed to display route on map in JavaScript
1 to 2 of 2
-
- CommentAuthorAlexei
- CommentTimeMar 29th 2011
Hello,
I encountered the following problem when used Route.getDirections in JavaScript. Directions object could not properly deserialize the JSON output from route.ashx. The problem is that even i have en-US culture for IIS application GeoStream still serializes LatLon objects with 'comma' as digit separator. E.g.
{_class:{_ref:331},_length:4,_values:"34,054442,-118,210925;34,054374,-118,210608;34,054279,-118,21023;34,054215,-118,209721;"}
====
Here is the problematic part of route.ashx output (look at the end of the document where points array located):
points_cache:{_class:{_ref:4},_length:86,_values:"34,056977,-118,185937;34,057017,-118,185787;34,056518,-118,185653;34,056625,-118,185173;34,056768,-118,184665;34,056982,-118,184026;34,057253,-118,183442;34,057285,-118,18338;34,057812,-118,182257;34,058223,-118,181354;34,059348,-118,178954;34,059697,-118,178189;34,060486,-118,176531;34,06102,-118,175323;34,061144,-118,175013;34,061211,-118,174914;34,061343,-118,174798;34,061343,-118,174565;34,061335,-118,174332;34,061323,-118,174242;34,061272,-118,174063;34,061217,-118,17394;34,06149,-118,173344;34,061639,-118,173001;34,061773,-118,172705;34,061966,-118,172297;34,062208,-118,171771;34,062355,-118,17151;34,062406,-118,171433;34,062337,-118,171412;34,062237,-118,171378;34,0622,-118,171363;34,06214,-118,171343;34,062078,-118,171321;34,062034,-118,171303;34,06195,-118,171268;34,061899,-118,17125;34,06166,-118,171162;34,061233,-118,171024;34,061179,-118,171008;34,061067,-118,170973;34,060953,-118,170943;34,06092,-118,17093;34,060875,-118,170914;34,060912,-118,170674;34,060975,-118,170293;34,060993,-118,17009;34,060959,-118,169609;34,060912,-118,169285;34,060814,-118,168653;34,060684,-118,167842;34,060591,-118,167465;34,060448,-118,167123;34,060387,-118,167075;34,060319,-118,166935;34,059927,-118,166002;34,059927,-118,165938;34,059843,-118,165757;34,059828,-118,16572;34,059719,-118,165374;34,059695,-118,165233;34,059689,-118,16496;34,059691,-118,164924;34,059705,-118,164689;34,059769,-118,164414;34,059891,-118,164138;34,059974,-118,163993;34,060154,-118,163748;34,060619,-118,163243;34,060757,-118,163102;34,061208,-118,162506;34,061995,-118,161272;34,062162,-118,161021;34,062443,-118,160629;34,062516,-118,160536;34,062591,-118,160444;34,062988,-118,160011;34,063483,-118,159508;34,063635,-118,159319;34,064077,-118,158549;34,064565,-118,157619;34,064936,-118,156893;34,064871,-118,156848;34,064547,-118,156654;34,064758,-118,156256;34,064745,-118,156249;"}},error:null,id:5}') -
- CommentAuthorSharonD
- CommentTimeMar 29th 2011
Hi,
I have just tested tutorial.routing.aspx in our latest release GeoBase 3.6.1 and have not seen this problem in Fiddler. What is your GeoBase version? Do you see this when running the routing tutorial?
Regards,
Sharon
1 to 2 of 2
