SASGIS

Веб-картография и навигация


View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0002051SAS.ПланетаРефакторингpublic26-07-2013 19:5628-07-2013 17:49
Reportervdemidov 
Assigned Tovdemidov 
PrioritynormalSeverityminorReproducibilityhave not tried
StatusresolvedResolutionfixed 
PlatformOSOS Version
Product Version.Nightly 
Target Version131111Fixed in Version131111 
Summary0002051: Ошибка в геокодере
DescriptionВ геокодере u_GeoCoderByURL есть такой код:
 if PosEx('go.2gis.ru', VLink, 1) > 0then begin
  sdesc := VLink;
  VHeader := 'Cookie: 2gisAPI=c2de06c2dd3109de8ca09a59ee197a4210495664eeae8d4075848.943590';
  VLink := '';
  VRequest := TDownloadRequest.Create(sdesc, VHeader, InetSettings.GetStatic);
  VResult := Downloader.DoRequest(VRequest, ACancelNotifier, AOperationID);
  if Supports(VResult, IDownloadResultOk, VResultOk) then begin
    SetLength(VLink, VResultOk.Data.Size);
    Move(VResultOk.Data.Buffer^, VLink[1], VResultOk.Data.Size);
    i := PosEx('center/', sname, 1);
    j := PosEx(',', sname, i );
    slon := Copy(sname, i + 7, j - (i + 7));
    i := j;
    j := PosEx('/', sname, i );
    slat := Copy(sname, i + 1, j - (i + 1));
    sname := '2gis';
  end;
 end;
Судя по всему тут ошибка копипасты, вместо sname должно быть VLink иначе зачем делали запрос совершенно непонятно.
TagsNo tags attached.
Attached Files

- Relationships

-  Notes
There are no notes attached to this issue.

- Users who viewed this issue
User List Anonymous (1607x)
Total Views 1607
Last View 21-11-2024 16:01

- Issue History
Date Modified Username Field Change
26-07-2013 19:56 vdemidov New Issue
26-07-2013 19:56 vdemidov Status new => assigned
26-07-2013 19:56 vdemidov Assigned To => Garl
28-07-2013 17:49 vdemidov Status assigned => resolved
28-07-2013 17:49 vdemidov Fixed in Version => 131111
28-07-2013 17:49 vdemidov Resolution open => fixed
28-07-2013 17:49 vdemidov Assigned To Garl => vdemidov



Copyright © 2007 - 2024 SAS.Planet Team