syntax = "proto2";

package maps_adv.adv_store.proto.placing;

message Point {
    optional double lon = 1;
    optional double lat = 2;
}

message Polygon {
    repeated Point points = 1;
    required string name = 2;
    optional string preset_id = 3;
    optional string uri = 4;
}

message Area {
    required uint64 version = 1;
    repeated Polygon areas = 2;
}

message Organizations {
    repeated uint64 permalinks = 1 [packed=true];
}

message Placing {
    oneof placing {
        Area area = 1;
        Organizations organizations = 2;
    }
}
