Update codebase
This commit is contained in:
@@ -69,14 +69,14 @@ class CountryPolygons {
|
||||
static String getRoutingApiUrl(String countryName) {
|
||||
switch (countryName) {
|
||||
case 'Jordan':
|
||||
return 'https://routec.tripz.xyz/route-jo';
|
||||
return 'https://routec.intaleq.xyz/route-jo';
|
||||
case 'Syria':
|
||||
return 'https://routec.tripz.xyz/route';
|
||||
return 'https://routec.intaleq.xyz/route';
|
||||
case 'Egypt':
|
||||
return 'https://routec.tripz.xyz/route-eg';
|
||||
return 'https://routec.intaleq.xyz/route-eg';
|
||||
default:
|
||||
// الافتراضي في حالة لم يقع الموقع ضمن أي من المضلعات
|
||||
return 'https://routec.tripz.xyz/route';
|
||||
return 'https://routec.intaleq.xyz/route';
|
||||
}
|
||||
}
|
||||
|
||||
@@ -88,7 +88,7 @@ class CountryPolygons {
|
||||
if (_isPointInPolygon(point, syriaBoundary)) return "Syria";
|
||||
if (_isPointInPolygon(point, egyptBoundary)) return "Egypt";
|
||||
|
||||
return "unsupported";
|
||||
return "unsupported";
|
||||
}
|
||||
|
||||
/// خوارزمية Ray Casting للتحقق من وقوع نقطة داخل مضلع
|
||||
|
||||
Reference in New Issue
Block a user