feat: implement billing, usage tracking, and administrative geocoding features in API with infrastructure updates
This commit is contained in:
@@ -19,7 +19,8 @@ graphhopper:
|
||||
import.osm.ignored_highways: "footway,cycleway,path,pedestrian,steps"
|
||||
|
||||
# قائمة واحدة بلا مسافات — GraphHopper يفصل على الفاصلة فقط
|
||||
graph.encoded_values: road_class,road_environment,max_speed,road_access,surface,roundabout,lanes
|
||||
# car_access إلزامية لأن custom_model يستخدمها لفرض اتجاه السير (انظر priority أدناه)
|
||||
graph.encoded_values: road_class,road_environment,max_speed,road_access,surface,roundabout,lanes,car_access
|
||||
|
||||
profiles:
|
||||
- name: car
|
||||
@@ -49,6 +50,11 @@ graphhopper:
|
||||
- if: "road_class == LIVING_STREET || road_class == SERVICE"
|
||||
limit_to: 14
|
||||
priority:
|
||||
# فرض اتجاه السير: بدون هذه القاعدة تبقى car_access مخزّنة في الغراف
|
||||
# لكن غير مُطبَّقة في حساب الوزن، فيُخترق كل oneway. القاعدة تأتي
|
||||
# افتراضياً من car.json، ولا تُدمج حين يُكتب custom_model سطرياً.
|
||||
- if: "!car_access"
|
||||
multiply_by: 0
|
||||
# تفضيل الشرايين الرئيسية بدل قصّ الطريق عبر الأحياء
|
||||
- if: "road_class == LIVING_STREET"
|
||||
multiply_by: 0.5
|
||||
|
||||
Reference in New Issue
Block a user