delphi4arab منتديات دلفي للعرب

نسخة كاملة : تحديد الموقع مع الخريطة والبلد والاحداثيات بدون موقع
أنت حالياً تتصفح نسخة خفيفة من المنتدى . مشاهدة نسخة كاملة مع جميع الأشكال الجمالية .
وتشمل هذه التفاصيل معلومات الموقع الجغرافي (ويشمل البلد والمنطقة / الدولة، المدينة، وخطوط العرض والطول، والهاتف رمز المنطقة.)، وخريطة محددة الموقع بالطبع الخريطة نحتاج الى اتصال اما البقية فهي من القاعدة المرفقة
وكذلك تم ارفاق دالة ايجاد الايبي الحقيقي باستخدام Windows_Management_Instrumentation

[صورة: 20130520221133.jpg]
أحسنت يا استاذ أحسن الله اليك فهذا عمل رائع حقا
لعلي اقترح شيئا
و هو حفظ اماكن التواجد فمثلا مرة في مدينة ومرة في مدينة وهذا ريما يحتاجه من يريد تتبع حركة المعتدي
وشيء اخر
لنفرض أن برنامجكم الحمييل لقي رواجا في مثر مثلا ، ألا يمكنك في حال تقارب جهازين احدهما مسروق والاخر للشخص الموثوق مثلا ، ففي حالة التقارب بينهما يكون اظهار احداثيات الجهاز المسروق عند الموثوق و اظهار بيانات جهاز الموثوق في الخريطة اعلاه ، والقصد من هذا تتبع السارق بدقة كلبرة من خلال معرفة بعض النقاط الموثوقة

وتقبل اخي افكاري فانما ارغب في تطوير الفكرة
وفقك الله
[صورة: 20130521194740.jpg]

PHP كود :
function replacev(point:string):string;
 
begin
   Result
:=StringReplace(point,',','.',[rfReplaceAll, rfIgnoreCase]);
 
end;  

procedure GeoDZ(ip,ip2:string;zoom : string ='5');
var
   
GeoIP: TGeoIP;
   
GeoIPCity,GeoIPCity2: TGeoIPCity ;
begin
  GeoIP 
:= TGeoIP.Create('GeoLiteCity.dat');

  try
      
with Form1 do begin

     mmo1
.Clear;
    if 
GeoIP.GetCity(ip, GeoIPCity) = GEOIP_SUCCESS then begin
      mmo1
.Lines.Add('Latitude: '+ FloatToStr(GeoIPCity.Latitude)) ;
      
mmo1.Lines.Add('Longitude: '+ FloatToStr(GeoIPCity.Longitude));
      
mmo1.Lines.Add('DmaCode: '+ FloatToStr(GeoIPCity.DmaCode)) ;
      
mmo1.Lines.Add('AreaCode :'+ FloatToStr(GeoIPCity.AreaCode)) ;
      
mmo1.Lines.Add('CountryCode :'+ GeoIPCity.CountryCode);
      
mmo1.Lines.Add('CountryName :'+ GeoIPCity.CountryName);
      
mmo1.Lines.Add('Region :'+ GeoIPCity.Region);
      
mmo1.Lines.Add('City :'+ GeoIPCity.City);
      
mmo1.Lines.Add('PostalCode :'+ GeoIPCity.PostalCode);
       if 
GeoIP.GetCity(ip2, GeoIPCity2) = GEOIP_SUCCESS then
      wb1
.Navigate('http://maps.google.com/maps/api/staticmap?center='+floattostr(GeoIPCity.Latitude)+','+floattostr(GeoIPCity.Longitude)+'&zoom='+zoom+'&size=400x278&sensor=true&&markers=color:green|label:S|'+replacev(floattostr(GeoIPCity.Latitude))+','+replacev(floattostr(GeoIPCity.Longitude))+'&markers=color:red|label:|'+replacev(floattostr(GeoIPCity2.Latitude))+','+replacev(floattostr(GeoIPCity2.Longitude))) else
       
wb1.Navigate('http://maps.google.com/maps/api/staticmap?center='+floattostr(GeoIPCity.Latitude)+','+floattostr(GeoIPCity.Longitude)+'&zoom='+zoom+'&size=400x278&sensor=true&&markers=color:blue|label:S|'+replacev(floattostr(GeoIPCity.Latitude))+','+replacev(floattostr(GeoIPCity.Longitude)));
    
end

    
else
     
mmo1.Text := 'ERROR';
     
end;
  finally
    
GeoIP.Free;
  
end;
  
end; 
الاستخدام
PHP كود :
GeoDZ(cbb1.Items.Strings[cbb1.Itemindex],edt1.Text,edt2.Text); 
أحسنت يا استاذ أحسن الله اليك فهذا عمل رائع حقا